public function AnonymousUserResponseSubscriber::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php \Drupal\Core\EventSubscriber\AnonymousUserResponseSubscriber::__construct()
Constructs an AnonymousUserResponseSubscriber object.
Parameters
\Drupal\Core\Session\AccountInterface $current_user: The current user.
File
- core/
lib/ Drupal/ Core/ EventSubscriber/ AnonymousUserResponseSubscriber.php, line 35 - Contains \Drupal\Core\EventSubscriber\AnonymousUserResponseSubscriber.
Class
- AnonymousUserResponseSubscriber
- Response subscriber to handle finished responses for the anonymous user.
Namespace
Drupal\Core\EventSubscriberCode
public function __construct(AccountInterface $current_user) {
$this->currentUser = $current_user;
}