LocalTaskDefault::setActive

public LocalTaskDefault::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. Overrides LocalTaskInterface::setActive File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 118 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code public function setActive($active = TRU

LocalTaskDefault::routeProvider

protected LocalTaskDefault::routeProvider() Returns the route provider. Return value \Drupal\Core\Routing\RouteProviderInterface The route provider. File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 136 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code protected function routeProvider() { if (!$this->routeProvider) { $this->routeProvider = \Drupal::service('router.route_provider'); } return $this->routeProvider;

LocalTaskDefault::getWeight

public LocalTaskDefault::getWeight() Returns the weight of the local task. Return value int The weight of the task. If not defined in the annotation returns 0 by default or -10 for the root tab. Overrides LocalTaskInterface::getWeight File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 89 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code public function getWeight() { // By default the weight is 0, or -10 for the root tab. if (!i

LocalTaskDefault::getTitle

public LocalTaskDefault::getTitle(Request $request = NULL) 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. Overrides LocalTaskInterface::getTitle File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 77 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code public func

LocalTaskDefault::getRouteParameters

public LocalTaskDefault::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. Overrides LocalTaskInterface::getRouteParameters File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 43 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Dru

LocalTaskDefault::getRouteName

public LocalTaskDefault::getRouteName() Get the route name from the settings. Return value string The name of the route this local task links to. Overrides LocalTaskInterface::getRouteName File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 36 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code public function getRouteName() { return $this->pluginDefinition['route_name']; }

LocalTaskDefault::getOptions

public LocalTaskDefault::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. Overrides LocalTaskInterface::getOptions File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 105 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code public function get

LocalTaskDefault::getCacheTags

public LocalTaskDefault::getCacheTags() The cache tags associated with this object. When this object is modified, these cache tags will be invalidated. Return value string[] A set of cache tags. Overrides CacheableDependencyInterface::getCacheTags File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 146 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code public function getCacheTags() { if (!isset($this->pluginDefinition['cache_ta

LocalTaskDefault::getCacheMaxAge

public LocalTaskDefault::getCacheMaxAge() The maximum age for which this object may be cached. Return value int The maximum time in seconds that this object may be cached. Overrides CacheableDependencyInterface::getCacheMaxAge File core/lib/Drupal/Core/Menu/LocalTaskDefault.php, line 166 Class LocalTaskDefault Default object used for LocalTaskPlugins. Namespace Drupal\Core\Menu Code public function getCacheMaxAge() { if (!isset($this->pluginDefinition['cache_max_age'])) { ret

LocalTaskDefault::getCacheContexts

public LocalTaskDefault::getCacheContexts() The cache contexts associated with this object. These identify a specific variation/representation of the object. Cache contexts are tokens: placeholders that are converted to cache keys by the @cache_contexts_manager service. The replacement value depends on the request context (the current URL, language, and so on). They're converted before storing an object in cache. Return value string[] An array of cache context tokens, used to generate a cache