function MenuLinkDefault::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::__construct()
  2. 8.9.x core/lib/Drupal/Core/Menu/MenuLinkDefault.php \Drupal\Core\Menu\MenuLinkDefault::__construct()
  3. 11.x 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.

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 44

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.