public function DirectoryBrowser::submit in Media Directories 3.x
Same name and namespace in other branches
- 8 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 244
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);
}