public function LocalActions::__construct in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Plugin/Derivative/LocalActions.php \Drupal\rng\Plugin\Derivative\LocalActions::__construct()
- 3.x src/Plugin/Derivative/LocalActions.php \Drupal\rng\Plugin\Derivative\LocalActions::__construct()
Constructs a LocalTasks object.
Parameters
\Drupal\Core\Entity\EntityManagerInterface $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\DerivativeCode
public function __construct(EntityManagerInterface $entity_manager, RouteProviderInterface $route_provider, EventManagerInterface $event_manager) {
$this->entityManager = $entity_manager;
$this->routeProvider = $route_provider;
$this->eventManager = $event_manager;
}