class MenuLinkAdd
Modifies the 'Add link' local action to add a destination.
Hierarchy
- class \Drupal\Component\Plugin\PluginBase implements \Drupal\Component\Plugin\PluginInspectionInterface, \Drupal\Component\Plugin\DerivativeInspectionInterface
- class \Drupal\Core\Menu\LocalActionDefault implements \Drupal\Core\Menu\LocalActionInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait extends \Drupal\Component\Plugin\PluginBase
- class \Drupal\Core\Menu\LocalActionWithDestination extends \Drupal\Core\Menu\LocalActionDefault
- class \Drupal\menu_ui\Plugin\Menu\LocalAction\MenuLinkAdd extends \Drupal\Core\Menu\LocalActionWithDestination
- class \Drupal\Core\Menu\LocalActionWithDestination extends \Drupal\Core\Menu\LocalActionDefault
- class \Drupal\Core\Menu\LocalActionDefault implements \Drupal\Core\Menu\LocalActionInterface, \Drupal\Core\Plugin\ContainerFactoryPluginInterface, \Drupal\Core\Cache\CacheableDependencyInterface uses \Drupal\Core\DependencyInjection\DependencySerializationTrait extends \Drupal\Component\Plugin\PluginBase
Expanded class hierarchy of MenuLinkAdd
Deprecated
in drupal:11.2.0 and is removed from drupal:12.0.0. Use \Drupal\Core\Menu\LocalActionWithDestination instead.
See also
https://www.drupal.org/node/3490245
1 file declares its use of MenuLinkAdd
- MenuLinkAddTest.php in core/
modules/ menu_ui/ tests/ src/ Kernel/ MenuLinkAddTest.php
1 string reference to 'MenuLinkAdd'
- menu_link_add_test.links.action.yml in core/
modules/ menu_ui/ tests/ modules/ menu_link_add_test/ menu_link_add_test.links.action.yml - core/modules/menu_ui/tests/modules/menu_link_add_test/menu_link_add_test.links.action.yml
File
-
core/
modules/ menu_ui/ src/ Plugin/ Menu/ LocalAction/ MenuLinkAdd.php, line 17
Namespace
Drupal\menu_ui\Plugin\Menu\LocalActionView source
class MenuLinkAdd extends LocalActionWithDestination {
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);
}
}
Members
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.