You are here

public function LocalActions::__construct in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/Derivative/LocalActions.php \Drupal\rng\Plugin\Derivative\LocalActions::__construct()
  2. 8 src/Plugin/Derivative/LocalActions.php \Drupal\rng\Plugin\Derivative\LocalActions::__construct()

Constructs a LocalTasks object.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_manager: The entity manager.

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

\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.

File

src/Plugin/Derivative/LocalActions.php, line 45

Class

LocalActions
Provides dynamic local actions for RNG.

Namespace

Drupal\rng\Plugin\Derivative

Code

public function __construct(EntityTypeManagerInterface $entity_manager, RouteProviderInterface $route_provider, EventManagerInterface $event_manager) {
  $this->entityManager = $entity_manager;
  $this->routeProvider = $route_provider;
  $this->eventManager = $event_manager;
}