public function LocalTasks::__construct in RNG - Events and Registrations 8
Same name in this branch
- 8 src/Plugin/Derivative/LocalTasks.php \Drupal\rng\Plugin\Derivative\LocalTasks::__construct()
- 8 rng_debug/src/Plugin/Derivative/LocalTasks.php \Drupal\rng_debug\Plugin\Derivative\LocalTasks::__construct()
Same name and namespace in other branches
- 8.2 src/Plugin/Derivative/LocalTasks.php \Drupal\rng\Plugin\Derivative\LocalTasks::__construct()
- 3.x src/Plugin/Derivative/LocalTasks.php \Drupal\rng\Plugin\Derivative\LocalTasks::__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/ LocalTasks.php, line 49
Class
- LocalTasks
- Provides dynamic tasks 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;
}