You are here

public function DirectoryBrowser::submit in Media Directories 2.x

Same name and namespace in other branches
  1. 8 modules/media_directories_ui/src/Plugin/EntityBrowser/Widget/DirectoryBrowser.php \Drupal\media_directories_ui\Plugin\EntityBrowser\Widget\DirectoryBrowser::submit()
  2. 3.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 354

Class

DirectoryBrowser
Uses a view to provide entity listing in a browser's widget.

Namespace

Drupal\media_directories_ui\Plugin\EntityBrowser\Widget

Code

public function submit(array &$element, array &$form, FormStateInterface $form_state) {
  $entities = $this
    ->prepareEntities($form, $form_state);
  $this
    ->selectEntities($entities, $form_state);
}