function MenuActiveTrail::resolveCacheMiss
Resolves a cache miss.
When an offset is not found in the object, this is treated as a cache miss. This method allows classes using this implementation to look up the actual value and allow it to be cached.
Parameters
string $key: The offset that was requested.
Return value
mixed The value of the offset, or NULL if no value was found.
Overrides CacheCollector::resolveCacheMiss
See also
::getActiveTrailIds()
File
- 
              core/lib/ Drupal/ Core/ Menu/ MenuActiveTrail.php, line 83 
Class
- MenuActiveTrail
- Provides the default implementation of the active menu trail service.
Namespace
Drupal\Core\MenuCode
protected function resolveCacheMiss($menu_name) {
  $this->storage[$menu_name] = $this->doGetActiveTrailIds($menu_name);
  if (empty($menu_name)) {
    // We look in every menu so invalidate when any menu or menu item changes.
    $this->tags[] = 'config:menu_list';
    $this->tags[] = 'menu_link_content_list';
  }
  else {
    $this->tags[] = 'config:system.menu.' . $menu_name;
  }
  $this->persist($menu_name);
  return $this->storage[$menu_name];
}Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.
