public function View::submit in Entity Browser 8
Same name in this branch
- 8 src/Plugin/EntityBrowser/Widget/View.php \Drupal\entity_browser\Plugin\EntityBrowser\Widget\View::submit()
- 8 src/Plugin/EntityBrowser/SelectionDisplay/View.php \Drupal\entity_browser\Plugin\EntityBrowser\SelectionDisplay\View::submit()
Same name and namespace in other branches
- 8.2 src/Plugin/EntityBrowser/SelectionDisplay/View.php \Drupal\entity_browser\Plugin\EntityBrowser\SelectionDisplay\View::submit()
Submits form.
Parameters
array $form: Form.
\Drupal\Core\Form\FormStateInterface $form_state: Form state object.
Overrides SelectionDisplayBase::submit
File
- src/
Plugin/ EntityBrowser/ SelectionDisplay/ View.php, line 77
Class
- View
- Displays current selection in a View.
Namespace
Drupal\entity_browser\Plugin\EntityBrowser\SelectionDisplayCode
public function submit(array &$form, FormStateInterface $form_state) {
if ($form_state
->getTriggeringElement()['#name'] == 'use_selected') {
$this
->selectionDone($form_state);
}
}