public function RouteSubscriber::__construct in Entity Usage 8.3
Same name and namespace in other branches
- 8.4 src/Routing/RouteSubscriber.php \Drupal\entity_usage\Routing\RouteSubscriber::__construct()
- 8 src/Routing/RouteSubscriber.php \Drupal\entity_usage\Routing\RouteSubscriber::__construct()
- 8.2 src/Routing/RouteSubscriber.php \Drupal\entity_usage\Routing\RouteSubscriber::__construct()
Constructs a new RouteSubscriber object.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity type manager.
\Drupal\Core\Config\ConfigFactoryInterface $config: The config factory service.
File
- src/
Routing/ RouteSubscriber.php, line 39
Class
- RouteSubscriber
- Registers a route for generic usage local tasks for entities.
Namespace
Drupal\entity_usage\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_manager, ConfigFactoryInterface $config) {
$this->entityTypeManager = $entity_manager;
$this->config = $config;
}