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\Menu

Code

public function getOptions(RouteMatchInterface $route_match) {
  return (array) $this->pluginDefinition['options'];
}
doc_Drupal
2016-10-29 09:23:39
Comments
Leave a Comment

Please login to continue.