Search for context

  1. Search 7.x for context
  2. Search 8.9.x for context
  3. Search 10.3.x for context
  4. Search 11.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
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.
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.
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.
BaseFieldOverrideResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/BaseFieldOverrideResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
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.
block.links.contextual.yml file core/modules/block/block.links.contextual.yml core/modules/block/block.links.contextual.yml
Block::$contexts property core/modules/block/src/Entity/Block.php The available contexts for this block and its visibility conditions.
Block::$context_definitions property core/lib/Drupal/Core/Block/Annotation/Block.php An array of context definitions describing the context used by the plugin.
BlockAccessControlHandler::$contextHandler property core/modules/block/src/BlockAccessControlHandler.php The plugin context handler.
BlockAccessControlHandler::$contextRepository property core/modules/block/src/BlockAccessControlHandler.php The context manager service.
BlockContentCacheTagsTest::getAccessCacheContextsForEntity function core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
BlockContentContextualLinksTest class core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php Tests views contextual links on block content.
BlockContentContextualLinksTest.php file core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php
BlockContentContextualLinksTest::$defaultTheme property core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php The theme to install as the default for testing.
BlockContentContextualLinksTest::$modules property core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php Modules to enable.

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