public function MenuLinkDefault::__construct in Drupal 9
Same name and namespace in other branches
- 8 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 43
Class
- MenuLinkDefault
- Provides a default implementation for menu link plugins.
Namespace
Drupal\Core\MenuCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, StaticMenuLinkOverridesInterface $static_override) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->staticOverride = $static_override;
}