public MenuTreeParameters::setActiveTrail(array $active_trail)
Sets the active trail IDs used to set the inActiveTrail property.
@codeCoverageIgnore
string[] $active_trail: An array containing the active trail: a list of menu link plugin IDs.
$this
\Drupal\Core\Menu\MenuActiveTrail::getActiveTrailIds()
public function setActiveTrail(array $active_trail) { $this->activeTrail = $active_trail; return $this; }
© 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!MenuTreeParameters.php/function/MenuTreeParameters::setActiveTrail/8.1.x