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