Search for context

  1. Search 7.x for context
  2. Search 9.5.x for context
  3. Search 8.9.x for context
  4. Search 10.3.x for context
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Context class core/lib/Drupal/Core/Plugin/Context/Context.php A Drupal specific context wrapper class.
Context class core/lib/Drupal/Component/Plugin/Context/Context.php 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/modules/node/src/Plugin/views/filter/Access.php The cache contexts associated with this object.
AccessAwareRouter::getContext function core/lib/Drupal/Core/Routing/AccessAwareRouter.php
AccessAwareRouter::setContext function core/lib/Drupal/Core/Routing/AccessAwareRouter.php
AccessPolicyBase::getPersistentCacheContexts function core/lib/Drupal/Core/Session/AccessPolicyBase.php Gets the persistent cache contexts.
AccessPolicyInterface::getPersistentCacheContexts function core/lib/Drupal/Core/Session/AccessPolicyInterface.php Gets the persistent cache contexts.
AccessPolicyProcessor::getPersistentCacheContexts function core/lib/Drupal/Core/Session/AccessPolicyProcessor.php Gets the persistent cache contexts of all policies within a given scope.
AccessPolicyProcessorTest::testCacheContextCaching function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that the persistent cache contexts are added properly.
AccessPolicyProcessorTest::testCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Tests that only the cache contexts for policies that apply are added.
AccessResult::getCacheContexts function core/lib/Drupal/Core/Access/AccessResult.php The cache contexts associated with this object.
AccessResult::resetCacheContexts function core/lib/Drupal/Core/Access/AccessResult.php Resets cache contexts (to the empty array).
AccessResultTest::$cacheContextsManager property core/tests/Drupal/Tests/Core/Access/AccessResultTest.php The cache contexts manager.
AccessResultTest::testCacheContexts function core/tests/Drupal/Tests/Core/Access/AccessResultTest.php @covers ::addCacheContexts
@covers ::resetCacheContexts
@covers ::getCacheContexts
@covers ::cachePerPermissions
@covers ::cachePerUser
@covers ::allowedIfHasPermission
AccountPermissionsCacheContext class core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Defines the AccountPermissionsCacheContext service, for "per permission" caching.
AccountPermissionsCacheContext.php file core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php
AccountPermissionsCacheContext::$permissionsHashGenerator property core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php The permissions hash generator.
AccountPermissionsCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Gets the cacheability metadata for the context.
AccountPermissionsCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Returns the string representation of the cache context.
AccountPermissionsCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Returns the label of the cache context.
AccountPermissionsCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/AccountPermissionsCacheContext.php Constructs a new UserCacheContext service.
ActionResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
AdminContext class core/lib/Drupal/Core/Routing/AdminContext.php Provides a helper class to determine whether the route is an admin one.
AdminContext.php file core/lib/Drupal/Core/Routing/AdminContext.php
AdminContext::$routeMatch property core/lib/Drupal/Core/Routing/AdminContext.php The route match.
AdminContext::isAdminRoute function core/lib/Drupal/Core/Routing/AdminContext.php Determines whether the active route is an admin one.
AdminContext::__construct function core/lib/Drupal/Core/Routing/AdminContext.php Construct a new admin context helper instance.
AdminNegotiator::$adminContext property core/modules/user/src/Theme/AdminNegotiator.php The route admin context to determine whether a route is an admin one.
AdminPathConfigEntityConverter::$adminContext property core/lib/Drupal/Core/ParamConverter/AdminPathConfigEntityConverter.php The route admin context to determine whether a route is an admin one.
AlwaysAddsAccessPolicy::getPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Gets the persistent cache contexts.
AlwaysAltersAccessPolicy::getPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Gets the persistent cache contexts.
Annotation for context definition group core/lib/Drupal/Core/Annotation/ContextDefinition.php Describes how to use ContextDefinition annotation.
ArgumentPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php The cache contexts associated with this object.
ArgumentPluginBase::getContextDefinition function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Returns a context definition for this argument.
ArgumentValidatorPluginBase::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php Returns a context definition for this argument.
AssertPageCacheContextsAndTagsTrait trait core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Provides test assertions for testing page-level cache contexts & tags.
AssertPageCacheContextsAndTagsTrait.php file core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php
AssertPageCacheContextsAndTagsTrait::assertCacheContext function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts whether an expected cache context was present in the last response.
AssertPageCacheContextsAndTagsTrait::assertCacheContexts function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache contexts are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts the max age header.
AssertPageCacheContextsAndTagsTrait::assertCacheTags function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache tags are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertNoCacheContext function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts that a cache context was not present in the last response.
AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts page cache miss, then hit for the given URL; checks cache headers.
AssertPageCacheContextsAndTagsTrait::enablePageCaching function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Enables page caching.
AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Gets a specific header value as array.
BarAccessPolicy::getPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Gets the persistent cache contexts.
BaseFieldOverrideResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
BazAccessPolicy::getPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Gets the persistent cache contexts.
BazCacheContext class core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Fake calculated cache context class.
BazCacheContext::getCacheableMetadata function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Gets the cacheability metadata for the context based on the parameter value.
BazCacheContext::getContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Returns the string representation of the cache context.
BazCacheContext::getLabel function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Returns the label of the cache context.

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