function MenuLinkAdd::__construct
Same name in other branches
- 9 core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php \Drupal\menu_ui\Plugin\Menu\LocalAction\MenuLinkAdd::__construct()
- 8.9.x core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php \Drupal\menu_ui\Plugin\Menu\LocalAction\MenuLinkAdd::__construct()
- 10 core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php \Drupal\menu_ui\Plugin\Menu\LocalAction\MenuLinkAdd::__construct()
Overrides LocalActionWithDestination::__construct
File
-
core/
modules/ menu_ui/ src/ Plugin/ Menu/ LocalAction/ MenuLinkAdd.php, line 19
Class
- MenuLinkAdd
- Modifies the 'Add link' local action to add a destination.
Namespace
Drupal\menu_ui\Plugin\Menu\LocalActionCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider, RedirectDestinationInterface $redirectDestination) {
parent::__construct($configuration, $plugin_id, $plugin_definition, $route_provider, $redirectDestination);
@trigger_error(__CLASS__ . ' is deprecated in drupal:11.2.0 and is removed from drupal:12.0.0. Use \\Drupal\\Core\\Menu\\LocalActionWithDestination instead. See https://www.drupal.org/node/3490245', E_USER_DEPRECATED);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.