Search for contexts

  1. Search 7.x for contexts
  2. Search 9.5.x for contexts
  3. Search 10.3.x for contexts
  4. Search 11.x for contexts
  5. Other projects
Title Object type File name Summary
Context::getCacheContexts function core/lib/Drupal/Core/Plugin/Context/Context.php The cache contexts associated with this object.
ContextAwarePluginBase::$contexts property core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Data objects representing the contexts passed in the plugin configuration.
ContextAwarePluginBase::getCacheContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginBase.php The cache contexts associated with this object.
ContextAwarePluginBase::getContexts function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Gets the defined contexts.
ContextAwarePluginBase::validateContexts function core/lib/Drupal/Component/Plugin/ContextAwarePluginBase.php Validates the set values for the defined contexts.
ContextAwarePluginInterface::getContexts function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Gets the defined contexts.
ContextAwarePluginInterface::validateContexts function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Validates the set values for the defined contexts.
ContextAwarePluginManagerInterface::getDefinitionsForContexts function core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerInterface.php Determines plugins whose constraints are satisfied by a set of contexts.
ContextAwarePluginManagerTrait::getDefinitionsForContexts function core/lib/Drupal/Core/Plugin/Context/ContextAwarePluginManagerTrait.php See \Drupal\Core\Plugin\Context\ContextAwarePluginManagerInterface::getDefinitionsForContexts().
ContextAwareVariantInterface::getContexts function core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Gets the values for all defined contexts.
ContextAwareVariantInterface::setContexts function core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Sets the context values for this display variant.
ContextHandler::filterPluginDefinitionsByContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Determines plugins whose constraints are satisfied by a set of contexts.
ContextHandler::getMatchingContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Determines which contexts satisfy the constraints of a given definition.
ContextHandlerInterface::filterPluginDefinitionsByContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php Determines plugins whose constraints are satisfied by a set of contexts.
ContextHandlerInterface::getMatchingContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandlerInterface.php Determines which contexts satisfy the constraints of a given definition.
ContextHandlerTest::providerTestFilterPluginDefinitionsByContexts function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php Provides data for testFilterPluginDefinitionsByContexts().
ContextHandlerTest::providerTestGetMatchingContexts function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php Provides data for testGetMatchingContexts().
ContextHandlerTest::testFilterPluginDefinitionsByContexts function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php @covers ::filterPluginDefinitionsByContexts
ContextHandlerTest::testGetMatchingContexts function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php @covers ::getMatchingContexts
ContextProviderInterface::getAvailableContexts function core/lib/Drupal/Core/Plugin/Context/ContextProviderInterface.php Gets all available contexts for the purposes of configuration.
ContextProviderInterface::getRuntimeContexts function core/lib/Drupal/Core/Plugin/Context/ContextProviderInterface.php Gets runtime context values for the given context IDs.
ContextRepositoryInterface::getAvailableContexts function core/lib/Drupal/Core/Plugin/Context/ContextRepositoryInterface.php Gets all available contexts for the purposes of configuration.
ContextRepositoryInterface::getRuntimeContexts function core/lib/Drupal/Core/Plugin/Context/ContextRepositoryInterface.php Gets runtime context values for the given context IDs.
Current::getCacheContexts function core/modules/user/src/Plugin/views/filter/Current.php The cache contexts associated with this object.
CurrentLanguageContext::getAvailableContexts function core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php Gets all available contexts for the purposes of configuration.
CurrentLanguageContext::getRuntimeContexts function core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php Gets runtime context values for the given context IDs.
CurrentThemeCondition::getCacheContexts function core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php The cache contexts associated with this object.
CurrentUser::getCacheContexts function core/modules/user/src/Plugin/views/argument_default/CurrentUser.php The cache contexts associated with this object.
CurrentUserContext::getAvailableContexts function core/modules/user/src/ContextProvider/CurrentUserContext.php Gets all available contexts for the purposes of configuration.
CurrentUserContext::getRuntimeContexts function core/modules/user/src/ContextProvider/CurrentUserContext.php Gets runtime context values for the given context IDs.
CurrentUserContextTest::testGetAvailableContexts function core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php @covers ::getAvailableContexts
DefaultPluginManager::getCacheContexts function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php The cache contexts associated with this object.
DefaultPluginManagerTest::testGetCacheContexts function core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php @covers ::getCacheContexts
DefaultsSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Derives the available plugin contexts from route values.
DefaultsSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Gets contexts for use during preview.
DefaultsSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContexts
DefaultsSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContextsDuringPreview
DynamicMenuLinkMock::getCacheContexts function core/tests/Drupal/Tests/Core/Menu/DynamicMenuLinkMock.php The cache contexts associated with this object.
DynamicPageCacheTestController::htmlUncacheableContexts function core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php A route returning a render array (with 'user' context, so uncacheable)
DynamicPageCacheTestController::htmlWithCacheContexts function core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php A route returning a render array (with cache contexts, so cacheable).
EditorResourceTestBase::getExpectedCacheContexts function core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityBase::getCacheContexts function core/lib/Drupal/Core/Entity/EntityBase.php The cache contexts associated with this object.
EntityCacheTagsTestBase::getAccessCacheContextsForEntity function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the access cache contexts for the tested entity.
EntityCacheTagsTestBase::getAccessCacheContextsForEntity function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the access cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntity function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the additional (non-standard) cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntity function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the additional (non-standard) cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the additional cache tags for the tested entity's listing by type.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the additional cache tags for the tested entity's listing by type.
EntityField::getCacheContexts function core/modules/views/src/Plugin/views/field/EntityField.php The cache contexts associated with this object.
EntityFieldRenderer::getCacheContexts function core/modules/views/src/Entity/Render/EntityFieldRenderer.php The cache contexts associated with this object.

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