public function RouteSubscriber::__construct in Entity Browser 8
Same name and namespace in other branches
- 8.2 src/RouteSubscriber.php \Drupal\entity_browser\RouteSubscriber::__construct()
Constructs a \Drupal\views\EventSubscriber\RouteSubscriber instance.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\entity_browser\DisplayManager $display_manager: The display manager.
File
- src/
RouteSubscriber.php, line 35
Class
- RouteSubscriber
- Generates routes for entity browsers.
Namespace
Drupal\entity_browserCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, DisplayManager $display_manager) {
$this->browserStorage = $entity_type_manager
->getStorage('entity_browser');
$this->displayManager = $display_manager;
}