You are here

public function MenuLinkDefault::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::__construct()

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

1 call to MenuLinkDefault::__construct()
LoginLogoutMenuLink::__construct in core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php
Constructs a new LoginLogoutMenuLink.
1 method overrides MenuLinkDefault::__construct()
LoginLogoutMenuLink::__construct in core/modules/user/src/Plugin/Menu/LoginLogoutMenuLink.php
Constructs a new LoginLogoutMenuLink.

File

core/lib/Drupal/Core/Menu/MenuLinkDefault.php, line 48
Contains \Drupal\Core\Menu\MenuLinkDefault.

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;
}