public function DirectoryBrowser::submit in Media Directories 8
Same name and namespace in other branches
- 3.x modules/media_directories_ui/src/Plugin/EntityBrowser/Widget/DirectoryBrowser.php \Drupal\media_directories_ui\Plugin\EntityBrowser\Widget\DirectoryBrowser::submit()
- 2.x modules/media_directories_ui/src/Plugin/EntityBrowser/Widget/DirectoryBrowser.php \Drupal\media_directories_ui\Plugin\EntityBrowser\Widget\DirectoryBrowser::submit()
File
- modules/
media_directories_ui/ src/ Plugin/ EntityBrowser/ Widget/ DirectoryBrowser.php, line 345
Class
- DirectoryBrowser
- Uses a view to provide entity listing in a browser's widget.
Namespace
Drupal\media_directories_ui\Plugin\EntityBrowser\WidgetCode
public function submit(array &$element, array &$form, FormStateInterface $form_state) {
$entities = $this
->prepareEntities($form, $form_state);
$this
->selectEntities($entities, $form_state);
}