public function SessionConfiguration::hasSession in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Session/SessionConfiguration.php \Drupal\Core\Session\SessionConfiguration::hasSession()
- 9 core/lib/Drupal/Core/Session/SessionConfiguration.php \Drupal\Core\Session\SessionConfiguration::hasSession()
File
- core/
lib/ Drupal/ Core/ Session/ SessionConfiguration.php, line 36
Class
- SessionConfiguration
- Defines the default session configuration generator.
Namespace
Drupal\Core\SessionCode
public function hasSession(Request $request) {
return $request->cookies
->has($this
->getName($request));
}