public function RouteSubscriber::__construct in CiviCRM Entity 8.3
RouteSubscriber constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- src/
Routing/ RouteSubscriber.php, line 38
Class
- RouteSubscriber
- Alters generated routes for CiviCRM Entity entity definitions.
Namespace
Drupal\civicrm_entity\RoutingCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, ModuleHandlerInterface $module_handler) {
$this->entityTypeManager = $entity_type_manager;
$this->moduleHandler = $module_handler;
}