W3cubDocs

/Drupal 8

protected function MenuActiveTrail::resolveCacheMiss

protected MenuActiveTrail::resolveCacheMiss($menu_name)

Overrides CacheCollector::resolveCacheMiss

See also

::getActiveTrailIds()

File

core/lib/Drupal/Core/Menu/MenuActiveTrail.php, line 70

Class

MenuActiveTrail
Provides the default implementation of the active menu trail service.

Namespace

Drupal\Core\Menu

Code

protected function resolveCacheMiss($menu_name) {
  $this->storage[$menu_name] = $this->doGetActiveTrailIds($menu_name);
  $this->tags[] = 'config:system.menu.' . $menu_name;
  $this->persist($menu_name);

  return $this->storage[$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::resolveCacheMiss/8.1.x