You are here

public function RouteSubscriber::__construct in Organic groups 8

Constructs a new RouteSubscriber object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider service.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher service.

File

src/Routing/RouteSubscriber.php, line 57

Class

RouteSubscriber
Route subscriber for OG related routes.

Namespace

Drupal\og\Routing

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, RouteProviderInterface $route_provider, EventDispatcherInterface $event_dispatcher) {
  $this->entityTypeManager = $entity_type_manager;
  $this->routeProvider = $route_provider;
  $this->eventDispatcher = $event_dispatcher;
}