CoreServiceProvider

ServiceProvider class for mandatory core services. This is where Drupal core registers all of its compiler passes. The service definitions themselves are in core/core.services.yml with a few, documented exceptions (typically, install requirements). Modules wishing to register services to the container should use modulename.services.yml in their respective directories. Hierarchy class \Drupal\Core\CoreServiceProvider implements ServiceModifierInterface, ServiceProviderInterface Related topics

CookiesCacheContext::getLabel

public static CookiesCacheContext::getLabel() Returns the label of the cache context. Return value string The label of the cache context. Overrides CalculatedCacheContextInterface::getLabel See also Cache File core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php, line 19 Class CookiesCacheContext Defines the CookiesCacheContext service, for "per cookie" caching. Namespace Drupal\Core\Cache\Context Code public static function getLabel() { return t('HTTP cookies'); }

CookiesCacheContext::getContext

public CookiesCacheContext::getContext($cookie = NULL) Returns the string representation of the cache context. A cache context service's name is used as a token (placeholder) cache key, and is then replaced with the string returned by this method. Parameters string|null $parameter: The parameter, or NULL to indicate all possible parameter values. Return value string The string representation of the cache context. When $parameter is NULL, a value representing all possible parameters must be ge

CookiesCacheContext::getCacheableMetadata

public CookiesCacheContext::getCacheableMetadata($cookie = NULL) Gets the cacheability metadata for the context based on the parameter value. There are three valid cases for the returned CacheableMetadata object: An empty object means this can be optimized away safely. A max-age of 0 means that this context can never be optimized away. It will never bubble up and cache tags will not be used. Any non-zero max-age and cache tags will bubble up into the cache item if this is optimized away to allo

CookiesCacheContext

Defines the CookiesCacheContext service, for "per cookie" caching. Cache context ID: 'cookies' (to vary by all cookies). Calculated cache context ID: 'cookies:%name', e.g. 'cookies:device_type' (to vary by the 'device_type' cookie). Hierarchy class \Drupal\Core\Cache\Context\RequestStackCacheContextBaseclass \Drupal\Core\Cache\Context\CookiesCacheContext implements CalculatedCacheContextInterface File core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php, line 14 Namespace Drupal\C

Cookie::__construct

public Cookie::__construct(SessionConfigurationInterface $session_configuration, Connection $connection) Constructs a new cookie authentication provider. Parameters \Drupal\Core\Session\SessionConfigurationInterface $session_configuration: The session configuration. \Drupal\Core\Database\Connection $connection: The database connection. File core/modules/user/src/Authentication/Provider/Cookie.php, line 40 Class Cookie Cookie based authentication provider. Namespace Drupal\user\Authenti

Cookie::getUserFromSession

protected Cookie::getUserFromSession(SessionInterface $session) Returns the UserSession object for the given session. Parameters \Symfony\Component\HttpFoundation\Session\SessionInterface $session: The session. Return value \Drupal\Core\Session\AccountInterface|null The UserSession object for the current user, or NULL if this is an anonymous session. File core/modules/user/src/Authentication/Provider/Cookie.php, line 69 Class Cookie Cookie based authentication provider. Namespace Drup

Cookie::authenticate

public Cookie::authenticate(Request $request) Authenticates the user. Parameters \Symfony\Component\HttpFoundation\Request|null $request: The request object. Return value \Drupal\Core\Session\AccountInterface|null AccountInterface - in case of a successful authentication. NULL - in case where authentication failed. Overrides AuthenticationProviderInterface::authenticate File core/modules/user/src/Authentication/Provider/Cookie.php, line 55 Class Cookie Cookie based authentication provide

Cookie::applies

public Cookie::applies(Request $request) Checks whether suitable authentication credentials are on the request. Parameters \Symfony\Component\HttpFoundation\Request $request: The request object. Return value bool TRUE if authentication credentials suitable for this provider are on the request, FALSE otherwise. Overrides AuthenticationProviderInterface::applies File core/modules/user/src/Authentication/Provider/Cookie.php, line 48 Class Cookie Cookie based authentication provider. Names

Cookie::$sessionConfiguration

The session configuration. Type: \Drupal\Core\Session\SessionConfigurationInterface File core/modules/user/src/Authentication/Provider/Cookie.php, line 23 Class Cookie Cookie based authentication provider. Namespace Drupal\user\Authentication\Provider Code protected $sessionConfiguration;