function 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\LocalAction

Code

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.