function PathAliasSubscriber::onKernelTerminate

Same name and namespace in other branches
  1. 9 core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber::onKernelTerminate()
  2. 10 core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php \Drupal\path_alias\EventSubscriber\PathAliasSubscriber::onKernelTerminate()

Ensures system paths for the request get cached.

File

core/modules/path_alias/src/EventSubscriber/PathAliasSubscriber.php, line 62

Class

PathAliasSubscriber
Provides a path subscriber that converts path aliases.

Namespace

Drupal\path_alias\EventSubscriber

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.