W3cubDocs

/Drupal 8

interface LocalActionManagerInterface

Manages discovery and instantiation of menu local action plugins.

Menu local actions are links that lead to actions like "add new". The plugin format allows them (if needed) to dynamically generate a title or the path they link to. The annotation on the plugin provides the default title, and the list of routes where the action should be rendered.

Hierarchy

File

core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php, line 15

Namespace

Drupal\Core\Menu

Members

Name Modifiers Type Description
DiscoveryInterface::getDefinition public function Gets a specific plugin definition.
DiscoveryInterface::getDefinitions public function Gets the definition of all plugins for this type.
DiscoveryInterface::hasDefinition public function Indicates if a specific plugin definition exists.
FactoryInterface::createInstance public function Creates a pre-configured instance of a plugin.
LocalActionManagerInterface::getActionsForRoute public function Finds all local actions that appear on a named route.
LocalActionManagerInterface::getTitle public function Gets the title for a local action.
MapperInterface::getInstance public function Gets a preconfigured instance of a plugin.

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!LocalActionManagerInterface.php/interface/LocalActionManagerInterface/8.1.x