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