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. Search 11.x for contexts
  6. Other projects
Title Object type File name Summary
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 Determines plugins whose constraints are satisfied by a set of contexts.
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
ContextHandler::getMatchingContexts function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php
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 Tests filter plugin definitions by contexts.
ContextHandlerTest::testGetMatchingContexts function core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php Tests get matching contexts.
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
CurrentLanguageContext::getAvailableContexts function core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php
CurrentLanguageContext::getRuntimeContexts function core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php
CurrentThemeCondition::getCacheContexts function core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
CurrentUser::getCacheContexts function core/modules/user/src/Plugin/views/argument_default/CurrentUser.php
CurrentUserContext::getAvailableContexts function core/modules/user/src/ContextProvider/CurrentUserContext.php
CurrentUserContext::getRuntimeContexts function core/modules/user/src/ContextProvider/CurrentUserContext.php
CurrentUserContextTest::testGetAvailableContexts function core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php Tests get available contexts.
Date::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/Date.php
DefaultPluginManager::getCacheContexts function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
DefaultPluginManagerTest::testGetCacheContexts function core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php Tests get cache contexts.
DefaultsSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
DefaultsSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
DefaultsSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php Tests get contexts.
DefaultsSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php Tests get contexts during preview.
DynamicMenuLinkMock::getCacheContexts function core/tests/Drupal/Tests/Core/Menu/DynamicMenuLinkMock.php
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
EntityBase::getCacheContexts function core/lib/Drupal/Core/Entity/EntityBase.php
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
EntityFieldRenderer::getCacheContexts function core/modules/views/src/Entity/Render/EntityFieldRenderer.php
EntityFormDisplayResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/EntityFormDisplayResourceTestBase.php
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.