LocalActionDefault::__construct

public LocalActionDefault::__construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider)

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.

Overrides PluginBase::__construct

File

core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 41

Class

LocalActionDefault
Provides a default implementation for local action plugins.

Namespace

Drupal\Core\Menu

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);

  $this->routeProvider = $route_provider;
}
doc_Drupal
2016-10-29 09:23:40
Comments
Leave a Comment

Please login to continue.