LocalTaskManager::$accessManager

The access manager. Type: \Drupal\Core\Access\AccessManagerInterface File core/lib/Drupal/Core/Menu/LocalTaskManager.php, line 100 Class LocalTaskManager Provides the default local task manager using YML as primary definition. Namespace Drupal\Core\Menu Code protected $accessManager;

LocalTaskManager

Provides the default local task manager using YML as primary definition. Hierarchy class \Drupal\Component\Plugin\PluginManagerBase implements PluginManagerInterface uses DiscoveryTraitclass \Drupal\Core\Plugin\DefaultPluginManager implements CachedDiscoveryInterface, PluginManagerInterface, CacheableDependencyInterface uses DiscoveryCachedTrait, UseCacheBackendTraitclass \Drupal\Core\Menu\LocalTaskManager implements LocalTaskManagerInterface File core/lib/Drupal/Core/Menu/LocalTaskManager

LocalTaskInterface::setActive

public LocalTaskInterface::setActive($active = TRUE) Sets the active status. Parameters bool $active: Sets whether this tab is active (e.g. a parent of the current tab). Return value \Drupal\Core\Menu\LocalTaskInterface The called object for chaining. File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 76 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function setActive($active = TRUE);

LocalTaskInterface::getWeight

public LocalTaskInterface::getWeight() Returns the weight of the local task. Return value int|null The weight of the task or NULL. File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 54 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function getWeight();

LocalTaskInterface::getTitle

public LocalTaskInterface::getTitle() Returns the localized title to be shown for this tab. Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver. Return value string The title of the local task. File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 35 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function getTitle();

LocalTaskInterface::getRouteParameters

public LocalTaskInterface::getRouteParameters(RouteMatchInterface $route_match) Returns the route parameters needed to render a link for the local task. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value array An array of parameter names and values. File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 46 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function getRou

LocalTaskInterface::getRouteName

public LocalTaskInterface::getRouteName() Get the route name from the settings. Return value string The name of the route this local task links to. File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 24 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function getRouteName();

LocalTaskInterface::getOptions

public LocalTaskInterface::getOptions(RouteMatchInterface $route_match) Returns options for rendering a link to the local task. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value array An associative array of options. File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 65 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function getOptions(RouteMatchInterface $route_

LocalTaskInterface::getActive

public LocalTaskInterface::getActive() Gets the active status. Return value bool TRUE if the local task is active, FALSE otherwise. See also \Drupal\system\Plugin\MenuLocalTaskInterface::setActive() File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 86 Class LocalTaskInterface Defines an interface for menu local tasks. Namespace Drupal\Core\Menu Code public function getActive();

LocalTaskInterface

Defines an interface for menu local tasks. Menu local tasks are typically rendered as navigation tabs above the content region, though other presentations are possible. It is convention that the titles of these tasks should be short verbs if possible. Hierarchy interface \Drupal\Core\Menu\LocalTaskInterface See also \Drupal\Core\Menu\LocalTaskManagerInterface File core/lib/Drupal/Core/Menu/LocalTaskInterface.php, line 16 Namespace Drupal\Core\Menu Members Name Modifiers Type De