You are here

public function LocalActionDefault::getOptions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getOptions()

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

2 calls to LocalActionDefault::getOptions()
BlockContentAddLocalAction::getOptions in core/modules/block_content/src/Plugin/Menu/LocalAction/BlockContentAddLocalAction.php
Returns options for rendering a link for the local action.
MenuLinkAdd::getOptions in core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php
Returns options for rendering a link for the local action.
2 methods override LocalActionDefault::getOptions()
BlockContentAddLocalAction::getOptions in core/modules/block_content/src/Plugin/Menu/LocalAction/BlockContentAddLocalAction.php
Returns options for rendering a link for the local action.
MenuLinkAdd::getOptions in core/modules/menu_ui/src/Plugin/Menu/LocalAction/MenuLinkAdd.php
Returns options for rendering a link for the local action.

File

core/lib/Drupal/Core/Menu/LocalActionDefault.php, line 121
Contains \Drupal\Core\Menu\LocalActionDefault.

Class

LocalActionDefault
Provides a default implementation for local action plugins.

Namespace

Drupal\Core\Menu

Code

public function getOptions(RouteMatchInterface $route_match) {
  return (array) $this->pluginDefinition['options'];
}