function Cookie::applies

Same name in other branches
  1. 9 core/modules/user/src/Authentication/Provider/Cookie.php \Drupal\user\Authentication\Provider\Cookie::applies()
  2. 10 core/modules/user/src/Authentication/Provider/Cookie.php \Drupal\user\Authentication\Provider\Cookie::applies()
  3. 11.x core/modules/user/src/Authentication/Provider/Cookie.php \Drupal\user\Authentication\Provider\Cookie::applies()

Overrides AuthenticationProviderInterface::applies

File

core/modules/user/src/Authentication/Provider/Cookie.php, line 48

Class

Cookie
Cookie based authentication provider.

Namespace

Drupal\user\Authentication\Provider

Code

public function applies(Request $request) {
    return $request->hasSession() && $this->sessionConfiguration
        ->hasSession($request);
}

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