You are here

public function PathSubscriber::onKernelTerminate in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php \Drupal\Core\EventSubscriber\PathSubscriber::onKernelTerminate()

Ensures system paths for the request get cached.

File

core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php, line 68
Contains \Drupal\Core\EventSubscriber\PathSubscriber.

Class

PathSubscriber
Provides a path subscriber that converts path aliases.

Namespace

Drupal\Core\EventSubscriber

Code

public function onKernelTerminate(PostResponseEvent $event) {
  $this->aliasManager
    ->writeCache();
}