MenuLinkDefault::__construct

public MenuLinkDefault::__construct(array $configuration, $plugin_id, $plugin_definition, StaticMenuLinkOverridesInterface $static_override)

Constructs a new MenuLinkDefault.

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\Menu\StaticMenuLinkOverridesInterface $static_override: The static override storage.

Overrides PluginBase::__construct

File

core/lib/Drupal/Core/Menu/MenuLinkDefault.php, line 43

Class

MenuLinkDefault
Provides a default implementation for menu link plugins.

Namespace

Drupal\Core\Menu

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, StaticMenuLinkOverridesInterface $static_override) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);

  $this->staticOverride = $static_override;
}
doc_Drupal
2016-10-29 09:26:53
Comments
Leave a Comment

Please login to continue.