ThemeInstaller::resetSystem

protected ThemeInstaller::resetSystem()

Resets some other systems like rebuilding the route information or caches.

File

core/lib/Drupal/Core/Extension/ThemeInstaller.php, line 275

Class

ThemeInstaller
Manages theme installation/uninstallation.

Namespace

Drupal\Core\Extension

Code

protected function resetSystem() {
  if ($this->routeBuilder) {
    $this->routeBuilder->setRebuildNeeded();
  }
  $this->systemListReset();

  // @todo It feels wrong to have the requirement to clear the local tasks
  //   cache here.
  Cache::invalidateTags(array('local_task'));
  $this->themeRegistryRebuild();
}
doc_Drupal
2016-10-29 09:48:10
Comments
Leave a Comment

Please login to continue.