You are here

protected function ThemeInstaller::resetSystem in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Extension/ThemeInstaller.php \Drupal\Core\Extension\ThemeInstaller::resetSystem()

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

2 calls to ThemeInstaller::resetSystem()
ThemeInstaller::install in core/lib/Drupal/Core/Extension/ThemeInstaller.php
Installs a given list of themes.
ThemeInstaller::uninstall in core/lib/Drupal/Core/Extension/ThemeInstaller.php
Uninstalls a given list of themes.

File

core/lib/Drupal/Core/Extension/ThemeInstaller.php, line 280
Contains \Drupal\Core\Extension\ThemeInstaller.

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();
}