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];
}
doc_Drupal
2016-10-29 09:26:04
Comments
Leave a Comment

Please login to continue.