Search for context
- Search 7.x for context
- Search 8.9.x for context
- Search 10.3.x for context
- Search 11.x for context
- Other projects
Exact matches
Title | Object type | File name | Summary |
---|---|---|---|
Context | class | core/ |
A Drupal specific context wrapper class. |
Context | class | core/ |
A generic context class for wrapping data a plugin needs to operate. |
All search results
Title | Object type | File name | Summary |
---|---|---|---|
Access::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
AccessAwareRouter::getContext | function | core/ |
|
AccessAwareRouter::setContext | function | core/ |
|
AccessResult::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
AccessResult::resetCacheContexts | function | core/ |
Resets cache contexts (to the empty array). |
AccessResultTest::$cacheContextsManager | property | core/ |
The cache contexts manager. |
AccessResultTest::testCacheContexts | function | core/ |
@covers ::addCacheContexts @covers ::resetCacheContexts @covers ::getCacheContexts @covers ::cachePerPermissions @covers ::cachePerUser @covers ::allowedIfHasPermission |
AccountPermissionsCacheContext | class | core/ |
Defines the AccountPermissionsCacheContext service, for "per permission" caching. |
AccountPermissionsCacheContext.php | file | core/ |
|
AccountPermissionsCacheContext::$permissionsHashGenerator | property | core/ |
The permissions hash generator. |
AccountPermissionsCacheContext::getCacheableMetadata | function | core/ |
Gets the cacheability metadata for the context. |
AccountPermissionsCacheContext::getContext | function | core/ |
Returns the string representation of the cache context. |
AccountPermissionsCacheContext::getLabel | function | core/ |
Returns the label of the cache context. |
AccountPermissionsCacheContext::__construct | function | core/ |
Constructs a new UserCacheContext service. |
AdminContext | class | core/ |
Provides a helper class to determine whether the route is an admin one. |
AdminContext.php | file | core/ |
|
AdminContext::$routeMatch | property | core/ |
The route match. |
AdminContext::isAdminRoute | function | core/ |
Determines whether the active route is an admin one. |
AdminContext::__construct | function | core/ |
Construct a new admin context helper instance. |
AdminNegotiator::$adminContext | property | core/ |
The route admin context to determine whether a route is an admin one. |
AdminPathConfigEntityConverter::$adminContext | property | core/ |
The route admin context to determine whether a route is an admin one. |
Annotation for context definition | group | core/ |
Describes how to use ContextDefinition annotation. |
ArgumentPluginBase::getCacheContexts | function | core/ |
The cache contexts associated with this object. |
ArgumentPluginBase::getContextDefinition | function | core/ |
Returns a context definition for this argument. |
ArgumentValidatorPluginBase::getContextDefinition | function | core/ |
Returns a context definition for this argument. |
AssertPageCacheContextsAndTagsTrait | trait | core/ |
Provides test assertions for testing page-level cache contexts & tags. |
AssertPageCacheContextsAndTagsTrait.php | file | core/ |
|
AssertPageCacheContextsAndTagsTrait::assertCacheContext | function | core/ |
Asserts whether an expected cache context was present in the last response. |
AssertPageCacheContextsAndTagsTrait::assertCacheContexts | function | core/ |
Ensures that some cache contexts are present in the current response. |
AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge | function | core/ |
Asserts the max age header. |
AssertPageCacheContextsAndTagsTrait::assertCacheTags | function | core/ |
Ensures that some cache tags are present in the current response. |
AssertPageCacheContextsAndTagsTrait::assertNoCacheContext | function | core/ |
Asserts that a cache context was not present in the last response. |
AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags | function | core/ |
Asserts page cache miss, then hit for the given URL; checks cache headers. |
AssertPageCacheContextsAndTagsTrait::enablePageCaching | function | core/ |
Enables page caching. |
AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues | function | core/ |
Gets a specific header value as array. |
BaseFieldOverrideResourceTestBase::getExpectedCacheContexts | function | core/ |
The expected cache contexts for the GET/HEAD response of the test entity. |
BazCacheContext | class | core/ |
Fake calculated cache context class. |
BazCacheContext::getCacheableMetadata | function | core/ |
Gets the cacheability metadata for the context based on the parameter value. |
BazCacheContext::getContext | function | core/ |
Returns the string representation of the cache context. |
BazCacheContext::getLabel | function | core/ |
Returns the label of the cache context. |
block.links.contextual.yml | file | core/ |
core/modules/block/block.links.contextual.yml |
Block::$contexts | property | core/ |
The available contexts for this block and its visibility conditions. |
Block::$context_definitions | property | core/ |
An array of context definitions describing the context used by the plugin. |
BlockAccessControlHandler::$contextHandler | property | core/ |
The plugin context handler. |
BlockAccessControlHandler::$contextRepository | property | core/ |
The context manager service. |
BlockContentCacheTagsTest::getAccessCacheContextsForEntity | function | core/ |
|
BlockContentContextualLinksTest | class | core/ |
Tests views contextual links on block content. |
BlockContentContextualLinksTest.php | file | core/ |
|
BlockContentContextualLinksTest::$defaultTheme | property | core/ |
The theme to install as the default for testing. |
BlockContentContextualLinksTest::$modules | property | core/ |
Modules to enable. |
Pagination
- Page 1
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.