function MenuActiveTrail::destruct

Same name in this branch
  1. 11.x core/lib/Drupal/Core/ProxyClass/Menu/MenuActiveTrail.php \Drupal\Core\ProxyClass\Menu\MenuActiveTrail::destruct()
Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/ProxyClass/Menu/MenuActiveTrail.php \Drupal\Core\ProxyClass\Menu\MenuActiveTrail::destruct()
  2. main core/lib/Drupal/Core/ProxyClass/Menu/MenuActiveTrail.php \Drupal\Core\ProxyClass\Menu\MenuActiveTrail::destruct()
  3. main core/lib/Drupal/Core/Menu/MenuActiveTrail.php \Drupal\Core\Menu\MenuActiveTrail::destruct()

Overrides CacheCollector::destruct

File

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

Class

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

Namespace

Drupal\Core\Menu

Code

public function destruct() : void {
  // Because this cache is not additive, it stores exactly the same thing
  // every time, there is no need to acquire a lock before writing.
  $this->updateCache(FALSE);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.