public function DirectoryBrowserUiForm::__construct in Media Directories 3.x
Constructs a new View object.
Parameters
\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher service.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- modules/
media_directories_ui/ src/ Form/ DirectoryBrowserUiForm.php, line 49
Class
- DirectoryBrowserUiForm
- Uses a view to provide entity listing in a browser's widget.
Namespace
Drupal\media_directories_ui\FormCode
public function __construct(EventDispatcherInterface $event_dispatcher, EntityTypeManagerInterface $entity_type_manager, AccountInterface $current_user) {
$this->currentUser = $current_user;
$this->entityTypeManager = $entity_type_manager;
}