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
ResourceTestBase::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
ResponseStatus::getCacheContexts function core/modules/system/src/Plugin/Condition/ResponseStatus.php
RestResourceConfigResourceTestBase::getExpectedCacheContexts function core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php
Role::getCacheContexts function core/modules/user/src/Plugin/views/access/Role.php
SearchPageResourceTestBase::getExpectedCacheContexts function core/modules/search/tests/src/Functional/Rest/SearchPageResourceTestBase.php
SectionComponentBuildRenderArrayEvent::$contexts property core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php The available contexts.
SectionComponentBuildRenderArrayEvent::getContexts function core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php Get the available contexts.
SectionStorageBase::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php
SectionStorageInterface::deriveContextsFromRoute function core/modules/layout_builder/src/SectionStorageInterface.php Derives the available plugin contexts from route values.
SectionStorageInterface::getContextsDuringPreview function core/modules/layout_builder/src/SectionStorageInterface.php Gets contexts for use during preview.
Serializer::getCacheContexts function core/modules/rest/src/Plugin/views/style/Serializer.php
ShortcutTranslationUITest::$defaultCacheContexts property core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
SimpleConfigSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
SimpleConfigSectionStorage::getContextsDuringPreview function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
SortPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/sort/SortPluginBase.php
SqlBase::getCacheContexts function core/modules/views/src/Plugin/views/pager/SqlBase.php
Status::getCacheContexts function core/modules/media/src/Plugin/views/filter/Status.php The cache contexts associated with this object.
Status::getCacheContexts function core/modules/node/src/Plugin/views/filter/Status.php
SuperUserAccessPolicy::getPersistentCacheContexts function core/lib/Drupal/Core/Session/SuperUserAccessPolicy.php
SuperUserAccessPolicyTest::testGetPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/SuperUserAccessPolicyTest.php Tests the getPersistentCacheContexts method.
SystemMenuBlock::getCacheContexts function core/modules/system/src/Plugin/Block/SystemMenuBlock.php
Table::getCacheContexts function core/modules/views/src/Plugin/views/style/Table.php
TermContextTest::testGetAvailableContexts function core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php Tests get available contexts.
TermContextTest::testGetRuntimeContexts function core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php Tests get runtime contexts.
TermResourceTestBase::getExpectedCacheContexts function core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php
TermRouteContext::getAvailableContexts function core/modules/taxonomy/src/ContextProvider/TermRouteContext.php
TermRouteContext::getRuntimeContexts function core/modules/taxonomy/src/ContextProvider/TermRouteContext.php
TermTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/TermTest.php The expected cache contexts for the GET/HEAD response of the test entity.
TermTranslationUITest::$defaultCacheContexts property core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php
TestCacheableDependency::$contexts property core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php The cache contexts.
TestCacheableDependency::getCacheContexts function core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php
TestCacheBlock::getCacheContexts function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php
TestCacheOptionalBlock::getCacheContexts function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheOptionalBlock.php
TestDisplayVariant::$contexts property core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php An array of collected contexts.
TestDisplayVariant::getContexts function core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php Gets the contexts.
TestDisplayVariant::setContexts function core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php Sets the contexts.
TestHelpTopicPlugin::getCacheContexts function core/modules/help/tests/modules/help_topics_test/src/Plugin/HelpTopic/TestHelpTopicPlugin.php
TestResponseController::testCacheContextsHeaders function core/modules/system/tests/modules/http_response_debug_cacheability_headers_test/src/Controller/TestResponseController.php Provides a render array response that has a large number of cache contexts.
TestStateBasedSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php
TextProcessed::getCacheContexts function core/modules/text/src/TextProcessed.php
Tid::getCacheContexts function core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php
ToolbarCacheContextsTest class core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests the cache contexts for toolbar.
ToolbarCacheContextsTest.php file core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php
ToolbarCacheContextsTest::$adminUser property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php An authenticated user to use for testing.
ToolbarCacheContextsTest::$adminUser2 property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php An authenticated user to use for testing.
ToolbarCacheContextsTest::$defaultTheme property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php
ToolbarCacheContextsTest::$modules property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php
ToolbarCacheContextsTest::$perms property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php A list of default permissions for test users.
ToolbarCacheContextsTest::assertToolbarCacheContexts function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests that cache contexts are applied for both users.
ToolbarCacheContextsTest::installExtraModules function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Installs a given list of modules and rebuilds the cache.

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