public MenuActiveTrail::getActiveTrailIds($menu_name)
This implementation caches all active trail IDs per route match for *all* menus whose active trails are calculated on that page. This ensures 1 cache get for all active trails per page load, rather than N.
It uses the cache collector pattern to do this.
Overrides MenuActiveTrailInterface::getActiveTrailIds
::get()
\Drupal\Core\Cache\CacheCollectorInterface
\Drupal\Core\Cache\CacheCollector
public function getActiveTrailIds($menu_name) { return $this->get($menu_name); }
© 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!MenuActiveTrail.php/function/MenuActiveTrail::getActiveTrailIds/8.1.x