LocalActionManagerInterface::getTitle

public LocalActionManagerInterface::getTitle(LocalActionInterface $local_action) Gets the title for a local action. Parameters \Drupal\Core\Menu\LocalActionInterface $local_action: An object to get the title from. Return value string The title (already localized). Throws \BadMethodCallException If the plugin does not implement the getTitle() method. File core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php, line 29 Class LocalActionManagerInterface Manages discovery and instantiati

LocalActionManagerInterface::getActionsForRoute

public LocalActionManagerInterface::getActionsForRoute($route_appears) Finds all local actions that appear on a named route. Parameters string $route_appears: The route name for which to find local actions. Return value array An array of link render arrays. File core/lib/Drupal/Core/Menu/LocalActionManagerInterface.php, line 40 Class LocalActionManagerInterface Manages discovery and instantiation of menu local action plugins. Namespace Drupal\Core\Menu Code public function getActions

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 interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Dru

LocalActionManager::__construct

public LocalActionManager::__construct(ControllerResolverInterface $controller_resolver, RequestStack $request_stack, RouteMatchInterface $route_match, RouteProviderInterface $route_provider, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache_backend, LanguageManagerInterface $language_manager, AccessManagerInterface $access_manager, AccountInterface $account) Constructs a LocalActionManager object. Parameters \Symfony\Component\HttpKernel\Controller\ControllerResolverInterfa

LocalActionManager::getTitle

public LocalActionManager::getTitle(LocalActionInterface $local_action) Gets the title for a local action. Parameters \Drupal\Core\Menu\LocalActionInterface $local_action: An object to get the title from. Return value string The title (already localized). Throws \BadMethodCallException If the plugin does not implement the getTitle() method. Overrides LocalActionManagerInterface::getTitle File core/lib/Drupal/Core/Menu/LocalActionManager.php, line 151 Class LocalActionManager Provides th

LocalActionManager::getDiscovery

protected LocalActionManager::getDiscovery() Gets the plugin discovery. Return value \Drupal\Component\Plugin\Discovery\DiscoveryInterface Overrides DefaultPluginManager::getDiscovery File core/lib/Drupal/Core/Menu/LocalActionManager.php, line 139 Class LocalActionManager Provides the default local action manager using YML as primary definition. Namespace Drupal\Core\Menu Code protected function getDiscovery() { if (!isset($this->discovery)) { $yaml_discovery = new YamlDiscov

LocalActionManager::getActionsForRoute

public LocalActionManager::getActionsForRoute($route_appears) Finds all local actions that appear on a named route. Parameters string $route_appears: The route name for which to find local actions. Return value array An array of link render arrays. Overrides LocalActionManagerInterface::getActionsForRoute File core/lib/Drupal/Core/Menu/LocalActionManager.php, line 160 Class LocalActionManager Provides the default local action manager using YML as primary definition. Namespace Drupal\C

LocalActionManager::$routeProvider

The route provider to load routes by name. Type: \Drupal\Core\Routing\RouteProviderInterface File core/lib/Drupal/Core/Menu/LocalActionManager.php, line 76 Class LocalActionManager Provides the default local action manager using YML as primary definition. Namespace Drupal\Core\Menu Code protected $routeProvider;

LocalActionManager::$routeMatch

The current route match. Type: \Drupal\Core\Routing\RouteMatchInterface File core/lib/Drupal/Core/Menu/LocalActionManager.php, line 69 Class LocalActionManager Provides the default local action manager using YML as primary definition. Namespace Drupal\Core\Menu Code protected $routeMatch;

LocalActionManager::$requestStack

The request stack. Type: \Symfony\Component\HttpFoundation\RequestStack File core/lib/Drupal/Core/Menu/LocalActionManager.php, line 62 Class LocalActionManager Provides the default local action manager using YML as primary definition. Namespace Drupal\Core\Menu Code protected $requestStack;