LocalActionInterface::getOptions

public LocalActionInterface::getOptions(RouteMatchInterface $route_match) Returns options for rendering a link for the local action. 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/LocalActionInterface.php, line 47 Class LocalActionInterface Defines an interface for menu local actions. Namespace Drupal\Core\Menu Code public function getOptions(RouteMatchInterf

LocalActionInterface

Defines an interface for menu local actions. Hierarchy interface \Drupal\Core\Menu\LocalActionInterface File core/lib/Drupal/Core/Menu/LocalActionInterface.php, line 10 Namespace Drupal\Core\Menu Members Name Modifiers Type Description LocalActionInterface::getOptions public function Returns options for rendering a link for the local action. LocalActionInterface::getRouteName public function Get the route name from the settings. LocalActionInterface::getRoutePa

LocalActionDefault::__construct

public LocalActionDefault::__construct(array $configuration, $plugin_id, $plugin_definition, RouteProviderInterface $route_provider) Constructs a LocalActionDefault object. Parameters array $configuration: A configuration array containing information about the plugin instance. string $plugin_id: The plugin_id for the plugin instance. mixed $plugin_definition: The plugin implementation definition. \Drupal\Core\Routing\RouteProviderInterface $route_provider: The route provider to load routes by

LocalActionDefault::getWeight

public LocalActionDefault::getWeight() Returns the weight for the local action. Return value int Overrides LocalActionInterface::getWeight File core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 78 Class LocalActionDefault Provides a default implementation for local action plugins. Namespace Drupal\Core\Menu Code public function getWeight() { return $this->pluginDefinition['weight']; }

LocalActionDefault::getTitle

public LocalActionDefault::getTitle(Request $request = NULL) Returns the localized title to be shown for this action. Subclasses may add optional arguments like NodeInterface $node = NULL that will be supplied by the ControllerResolver. Return value string The title to be shown for this action. Overrides LocalActionInterface::getTitle See also \Drupal\Core\Menu\LocalActionManager::getTitle() File core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 69 Class LocalActionDefault Provides

LocalActionDefault::getRouteParameters

public LocalActionDefault::getRouteParameters(RouteMatchInterface $route_match) Returns the route parameters needed to render a link for the local action. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value array An array of parameter names and values. Overrides LocalActionInterface::getRouteParameters File core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 85 Class LocalActionDefault Provides a default implementation for local acti

LocalActionDefault::getRouteName

public LocalActionDefault::getRouteName() Get the route name from the settings. Return value string The name of the route this action links to. Overrides LocalActionInterface::getRouteName File core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 62 Class LocalActionDefault Provides a default implementation for local action plugins. Namespace Drupal\Core\Menu Code public function getRouteName() { return $this->pluginDefinition['route_name']; }

LocalActionDefault::getOptions

public LocalActionDefault::getOptions(RouteMatchInterface $route_match) Returns options for rendering a link for the local action. Parameters \Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match. Return value array An associative array of options. Overrides LocalActionInterface::getOptions File core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 118 Class LocalActionDefault Provides a default implementation for local action plugins. Namespace Drupal\Core\M

LocalActionDefault::getCacheTags

public LocalActionDefault::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/LocalActionDefault.php, line 125 Class LocalActionDefault Provides a default implementation for local action plugins. Namespace Drupal\Core\Menu Code public function getCacheTags() { if (!isset($this->pl

LocalActionDefault::getCacheMaxAge

public LocalActionDefault::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/LocalActionDefault.php, line 145 Class LocalActionDefault Provides a default implementation for local action plugins. Namespace Drupal\Core\Menu Code public function getCacheMaxAge() { if (!isset($this->pluginDefinition['cac