Code Duplication    Length = 8-8 lines in 2 locations

src/Form/WidgetsConfig.php 2 locations

@@ 163-170 (lines=8) @@
160
  /**
161
   * {@inheritdoc}
162
   */
163
  public function validateForm(array &$form, FormStateInterface $form_state) {
164
    /** @var \Drupal\entity_browser\EntityBrowserInterface $entity_browser */
165
    $entity_browser = $form_state->getTemporaryValue('wizard')['entity_browser'];
166
    /** @var \Drupal\entity_browser\WidgetInterface $widget */
167
    foreach ($entity_browser->getWidgets() as $widget) {
168
      $widget->validateConfigurationForm($form, $form_state);
169
    }
170
  }
171
172
  /**
173
   * {@inheritdoc}
@@ 175-182 (lines=8) @@
172
  /**
173
   * {@inheritdoc}
174
   */
175
  public function submitForm(array &$form, FormStateInterface $form_state) {
176
    /** @var \Drupal\entity_browser\EntityBrowserInterface $entity_browser */
177
    $entity_browser = $form_state->getTemporaryValue('wizard')['entity_browser'];
178
    /** @var \Drupal\entity_browser\WidgetInterface $widget */
179
    foreach ($entity_browser->getWidgets() as $widget) {
180
      $widget->submitConfigurationForm($form, $form_state);
181
    }
182
  }
183
184
}
185