W3cubDocs

/Drupal 8

public property MenuLinkTreeElement::$options

Additional options for this link.

This is merged (\Drupal\Component\Utility\NestedArray::mergeDeep()) with \Drupal\Core\Menu\MenuLinkInterface::getOptions(), to allow menu link tree manipulators to add or override link options.

File

core/lib/Drupal/Core/Menu/MenuLinkTreeElement.php, line 82

Class

MenuLinkTreeElement
Provides a value object to model an element in a menu link tree.

Namespace

Drupal\Core\Menu

Code

public $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!MenuLinkTreeElement.php/property/MenuLinkTreeElement::options/8.1.x