function LocalActionDefault::getOptions

Same name in other branches
  1. 8.9.x core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getOptions()
  2. 10 core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getOptions()
  3. 11.x core/lib/Drupal/Core/Menu/LocalActionDefault.php \Drupal\Core\Menu\LocalActionDefault::getOptions()

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

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'];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.