public function ResetAccessRules::__construct in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Plugin/Menu/LocalAction/ResetAccessRules.php \Drupal\rng\Plugin\Menu\LocalAction\ResetAccessRules::__construct()
- 3.x src/Plugin/Menu/LocalAction/ResetAccessRules.php \Drupal\rng\Plugin\Menu\LocalAction\ResetAccessRules::__construct()
Constructs a LocalActionDefault object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider to load routes by name.
\Drupal\rng\EventManagerInterface $event_manager: The RNG event manager.
\Drupal\Core\Routing\RouteMatchInterface $current_route: The current route matcher.
Overrides LocalActionDefault::__construct
File
- src/
Plugin/ Menu/ LocalAction/ ResetAccessRules.php, line 49
Class
- ResetAccessRules
- Modifies the reset access rules action.
Namespace
Drupal\rng\Plugin\Menu\LocalActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider, EventManagerInterface $event_manager, RouteMatchInterface $current_route) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $route_provider);
$this->eventManager = $event_manager;
$this->currentRoute = $current_route;
}