Code Duplication    Length = 8-8 lines in 2 locations

src/Form/WidgetsConfig.php 2 locations

@@ 199-206 (lines=8) @@
196
  /**
197
   * {@inheritdoc}
198
   */
199
  public function validateForm(array &$form, FormStateInterface $form_state) {
200
    /** @var \Drupal\entity_browser\EntityBrowserInterface $entity_browser */
201
    $entity_browser = $form_state->getTemporaryValue('wizard')['entity_browser'];
202
    /** @var \Drupal\entity_browser\WidgetInterface $widget */
203
    foreach ($entity_browser->getWidgets() as $widget) {
204
      $widget->validateConfigurationForm($form, $form_state);
205
    }
206
  }
207
208
  /**
209
   * {@inheritdoc}
@@ 211-218 (lines=8) @@
208
  /**
209
   * {@inheritdoc}
210
   */
211
  public function submitForm(array &$form, FormStateInterface $form_state) {
212
    /** @var \Drupal\entity_browser\EntityBrowserInterface $entity_browser */
213
    $entity_browser = $form_state->getTemporaryValue('wizard')['entity_browser'];
214
    /** @var \Drupal\entity_browser\WidgetInterface $widget */
215
    foreach ($entity_browser->getWidgets() as $widget) {
216
      $widget->submitConfigurationForm($form, $form_state);
217
    }
218
  }
219
220
}
221