public function ContentHubViewSubscriber::onKernelFinishRequest in Acquia Content Hub 8
Switch back from the render Content Hub user.
Parameters
\Symfony\Component\HttpKernel\Event\FinishRequestEvent $event: The finish request event.
File
- src/
EventSubscriber/ ContentHubViewSubscriber.php, line 102
Class
- ContentHubViewSubscriber
- View subscriber rendering main content render arrays into responses.
Namespace
Drupal\acquia_contenthub\EventSubscriberCode
public function onKernelFinishRequest(FinishRequestEvent $event) {
if ($this->routeMatch
->getRouteName() === 'acquia_contenthub.content_entity_display.entity') {
$this->accountSwitcher
->switchBack();
}
}