public function DummyWidget::submit in Entity Browser 8
Same name and namespace in other branches
- 8.2 tests/modules/entity_browser_test/src/Plugin/EntityBrowser/Widget/DummyWidget.php \Drupal\entity_browser_test\Plugin\EntityBrowser\Widget\DummyWidget::submit()
Submits form.
Parameters
array $element: Widget part of the form.
array $form: Form.
\Drupal\Core\Form\FormStateInterface $form_state: Form state object.
Overrides WidgetBase::submit
File
- tests/
modules/ entity_browser_test/ src/ Plugin/ EntityBrowser/ Widget/ DummyWidget.php, line 48
Class
- DummyWidget
- Dummy widget implementation for test purposes.
Namespace
Drupal\entity_browser_test\Plugin\EntityBrowser\WidgetCode
public function submit(array &$element, array &$form, FormStateInterface $form_state) {
$this
->selectEntities([
$this->entity,
], $form_state);
}