Search for contexts

  1. Search 7.x for contexts
  2. Search 9.5.x for contexts
  3. Search 8.9.x for contexts
  4. Search 10.3.x for contexts
  5. Other projects
Title Object type File name Summary
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().
ContextAwarePluginTrait::getCacheContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::getContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::validateContexts function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
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
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.
DynamicPageCacheSubscriber::$cacheContexts property core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php The default cache contexts to vary every cache item by.
DynamicPageCacheSubscriber::$cacheContextsManager property core/modules/dynamic_page_cache/src/EventSubscriber/DynamicPageCacheSubscriber.php The cache contexts manager service.
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/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the access 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/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.
EntityFormDisplayResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityListBuilderTest::testCacheContexts function core/modules/system/tests/src/Functional/Entity/EntityListBuilderTest.php Tests that the correct cache contexts are set.
EntityRepository::getContentLanguageFromContexts function core/lib/Drupal/Core/Entity/EntityRepository.php Retrieves the current content language from the specified contexts.
EntityRepositoryTest::getLanguageContexts function core/tests/Drupal/KernelTests/Core/Entity/EntityRepositoryTest.php Returns a set of language contexts matching the specified language.

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