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);
}
}
}
Please login to continue.