function AnonymousUserResponseSubscriber::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php \Drupal\Core\EventSubscriber\AnonymousUserResponseSubscriber::__construct()
- 8.9.x core/lib/Drupal/Core/EventSubscriber/AnonymousUserResponseSubscriber.php \Drupal\Core\EventSubscriber\AnonymousUserResponseSubscriber::__construct()
- 11.x 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 30
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.