You are here

public function PathSubscriber::onKernelTerminate in Drupal 8

Ensures system paths for the request get cached.

File

core/lib/Drupal/Core/EventSubscriber/PathSubscriber.php, line 74

Class

PathSubscriber
Provides a path subscriber that converts path aliases.

Namespace

Drupal\Core\EventSubscriber

Code

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