LocalTaskManagerInterface::getLocalTasksForRoute

public LocalTaskManagerInterface::getLocalTasksForRoute($route_name) Find all local tasks that appear on a named route. Parameters string $route_name: The route for which to find local tasks. Return value array Returns an array of task levels. Each task level contains instances of local tasks (LocalTaskInterface) which appear on the tab route. The array keys are the depths and the values are arrays of plugin instances. File core/lib/Drupal/Core/Menu/LocalTaskManagerInterface.php, line 40 C

LocalTaskManagerInterface::getLocalTasks

public LocalTaskManagerInterface::getLocalTasks($route_name, $level = 0) Collects the local tasks (tabs) for the current route. Parameters string $route_name: The route for which to make renderable local tasks. int $level: The level of tasks you ask for. Primary tasks are 0, secondary are 1. Return value array An array containing tabs: Local tasks render array for the requested level. route_name: The route name for the current page used to collect the local tasks. See also hook_menu_loca

LocalTaskManagerInterface

Manages discovery and instantiation of menu local task plugins. This manager finds plugins that are rendered as local tasks (usually tabs). Derivatives are supported for modules that wish to generate multiple tabs on behalf of something else. Hierarchy interface \Drupal\Component\Plugin\Discovery\DiscoveryInterface; interface \Drupal\Component\Plugin\Factory\FactoryInterface; interface \Drupal\Component\Plugin\Mapper\MapperInterfaceinterface \Drupal\Component\Plugin\PluginManagerInterfaceinterf

LocalTaskManager::__construct

public LocalTaskManager::__construct(ControllerResolverInterface $controller_resolver, RequestStack $request_stack, RouteMatchInterface $route_match, RouteProviderInterface $route_provider, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache, LanguageManagerInterface $language_manager, AccessManagerInterface $access_manager, AccountInterface $account) Constructs a \Drupal\Core\Menu\LocalTaskManager object. Parameters \Drupal\Core\Controller\ControllerResolverInterface $control

LocalTaskManager::processDefinition

public LocalTaskManager::processDefinition(&$definition, $plugin_id) Performs extra processing on plugin definitions. By default we add defaults for the type to the definition. If a type has additional processing logic they can do that by replacing or extending the method. Overrides DefaultPluginManager::processDefinition File core/lib/Drupal/Core/Menu/LocalTaskManager.php, line 159 Class LocalTaskManager Provides the default local task manager using YML as primary definition. Namesp

LocalTaskManager::isRouteActive

protected LocalTaskManager::isRouteActive($current_route_name, $route_name, $route_parameters) Determines whether the route of a certain local task is currently active. Parameters string $current_route_name: The route name of the current main request. string $route_name: The route name of the local task to determine the active status. array $route_parameters: Return value bool Returns TRUE if the passed route_name and route_parameters is considered as the same as the one from the request, oth

LocalTaskManager::getTitle

public LocalTaskManager::getTitle(LocalTaskInterface $local_task) Gets the title for a local task. Parameters \Drupal\Core\Menu\LocalTaskInterface $local_task: A local task plugin instance to get the title for. Return value string The localized title. Overrides LocalTaskManagerInterface::getTitle File core/lib/Drupal/Core/Menu/LocalTaskManager.php, line 170 Class LocalTaskManager Provides the default local task manager using YML as primary definition. Namespace Drupal\Core\Menu Code

LocalTaskManager::getTasksBuild

public LocalTaskManager::getTasksBuild($current_route_name, RefinableCacheableDependencyInterface &$cacheability) Gets the render array for all local tasks. Parameters string $current_route_name: The route for which to make renderable local tasks. \Drupal\Core\Cache\RefinableCacheableDependencyInterface $cacheability: The cacheability metadata for the local tasks. Return value array A render array as expected by menu-local-tasks.html.twig. Overrides LocalTaskManagerInterface::getTasksBuil

LocalTaskManager::getLocalTasksForRoute

public LocalTaskManager::getLocalTasksForRoute($route_name) Find all local tasks that appear on a named route. Parameters string $route_name: The route for which to find local tasks. Return value array Returns an array of task levels. Each task level contains instances of local tasks (LocalTaskInterface) which appear on the tab route. The array keys are the depths and the values are arrays of plugin instances. Overrides LocalTaskManagerInterface::getLocalTasksForRoute File core/lib/Drupal/Cor

LocalTaskManager::getLocalTasks

public LocalTaskManager::getLocalTasks($route_name, $level = 0) Collects the local tasks (tabs) for the current route. Parameters string $route_name: The route for which to make renderable local tasks. int $level: The level of tasks you ask for. Primary tasks are 0, secondary are 1. Return value array An array containing tabs: Local tasks render array for the requested level. route_name: The route name for the current page used to collect the local tasks. Overrides LocalTaskManagerInterfa