AliasWhitelist::loadMenuPathRoots

protected AliasWhitelist::loadMenuPathRoots()

Loads menu path roots to prepopulate cache.

File

core/lib/Drupal/Core/Path/AliasWhitelist.php, line 71

Class

AliasWhitelist
Extends CacheCollector to build the path alias whitelist over time.

Namespace

Drupal\Core\Path

Code

protected function loadMenuPathRoots() {
  if ($roots = $this->state->get('router.path_roots')) {
    foreach ($roots as $root) {
      $this->storage[$root] = NULL;
      $this->persist($root);
    }
  }
}
doc_Drupal
2016-10-29 08:44:20
Comments
Leave a Comment

Please login to continue.