function RequestCloseSubscriber::onTerminate
Same name in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php \Drupal\Core\EventSubscriber\RequestCloseSubscriber::onTerminate()
- 10 core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php \Drupal\Core\EventSubscriber\RequestCloseSubscriber::onTerminate()
- 11.x core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php \Drupal\Core\EventSubscriber\RequestCloseSubscriber::onTerminate()
Performs end of request tasks.
@todo The body of this function has just been copied almost verbatim from drupal_page_footer(). There's probably a lot in here that needs to get removed/changed. Also, if possible, do more light-weight shutdowns on AJAX requests.
Parameters
Symfony\Component\HttpKernel\Event\PostResponseEvent $event: The Event to process.
File
-
core/
lib/ Drupal/ Core/ EventSubscriber/ RequestCloseSubscriber.php, line 41
Class
- RequestCloseSubscriber
- Subscriber for all responses.
Namespace
Drupal\Core\EventSubscriberCode
public function onTerminate(PostResponseEvent $event) {
$this->moduleHandler
->writeCache();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.