You are here

public function AddMenuCacheflush::__construct in CacheFlush 8

The class constructor.

Parameters

array $configuration: The configuration.

string $plugin_id: The plugin ID.

mixed $plugin_definition: The plugin definition.

\Drupal\Core\Routing\RouteBuilderInterface $router_builder: The router builder service.

Overrides PluginBase::__construct

File

modules/cacheflush_ui/src/Plugin/Action/AddMenuCacheflush.php, line 41

Class

AddMenuCacheflush
Add menu item.

Namespace

Drupal\cacheflush_ui\Plugin\Action

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteBuilderInterface $router_builder) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->routerBuilder = $router_builder;
}