W3cubDocs

/Drupal 8

public function MenuLinkBase::getOptions

public MenuLinkBase::getOptions()

Returns the options for this link.

Return value

array An associative array of options.

Overrides MenuLinkInterface::getOptions

File

core/lib/Drupal/Core/Menu/MenuLinkBase.php, line 94

Class

MenuLinkBase
Defines a base menu link class.

Namespace

Drupal\Core\Menu

Code

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

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuLinkBase.php/function/MenuLinkBase::getOptions/8.1.x