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
EntityResourceTestBase::getExpectedCacheContexts function core/modules/rest/tests/src/Functional/EntityResource/EntityResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestComputedFieldNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestComputedFieldNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestComputedFieldTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/EntityTestComputedFieldTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestJsonInternalPropertyNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestJsonInternalPropertyNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestLabelResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestLabelResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestMapFieldResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestMapFieldResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestTextItemNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Rest/EntityTestTextItemNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityType::$list_cache_contexts property core/lib/Drupal/Core/Entity/EntityType.php
EntityType::getListCacheContexts function core/lib/Drupal/Core/Entity/EntityType.php The list cache contexts associated with this entity type.
EntityTypeInterface::getListCacheContexts function core/lib/Drupal/Core/Entity/EntityTypeInterface.php The list cache contexts associated with this entity type.
EntityUnitTest::testCacheContexts function core/tests/Drupal/Tests/Core/Entity/EntityUnitTest.php @covers ::getCacheContexts
@covers ::addCacheContexts
EntityViewDisplayResourceTestBase::getExpectedCacheContexts function core/tests/Drupal/FunctionalTests/Rest/EntityViewDisplayResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityWithUriCacheTagsTestBase::getDefaultCacheContexts function core/modules/system/tests/src/Functional/Entity/EntityWithUriCacheTagsTestBase.php Gets the default cache contexts for rendered entities.
ExposedFormPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php The cache contexts associated with this object.
FakeViewModeContext::getAvailableContexts function core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php Gets all available contexts for the purposes of configuration.
FakeViewModeContext::getRuntimeContexts function core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php Gets runtime context values for the given context IDs.
FieldConfigResourceTestBase::getExpectedCacheContexts function core/modules/field/tests/src/Functional/Rest/FieldConfigResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
FileResourceTestBase::getExpectedCacheContexts function core/modules/file/tests/src/Functional/Rest/FileResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
FilterPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/filter/FilterPluginBase.php The cache contexts associated with this object.
FilterTestCacheContexts class core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheContexts.php Provides a test filter to associate cache contexts.
FilterTestCacheContexts.php file core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheContexts.php
FilterTestCacheContexts::process function core/modules/filter/tests/filter_test/src/Plugin/Filter/FilterTestCacheContexts.php Performs the filter processing.
FinishResponseSubscriberTest::$cacheContextsManager property core/tests/Drupal/Tests/Core/EventSubscriber/FinishResponseSubscriberTest.php The mock cache contexts manager.
Fixed::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/Fixed.php The cache contexts associated with this object.
FooAccessPolicy::getPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php Gets the persistent cache contexts.
ForumBlockBase::getCacheContexts function core/modules/forum/src/Plugin/Block/ForumBlockBase.php
HelpBlock::getCacheContexts function core/modules/help/src/Plugin/Block/HelpBlock.php
HelpTopicSection::getCacheContexts function core/modules/help/src/Plugin/HelpSection/HelpTopicSection.php
HelpTopicTwig::getCacheContexts function core/modules/help/src/HelpTopicTwig.php The cache contexts associated with this object.
IHaveRuntimeContexts class core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php Defines a class for a fake context provider.
IHaveRuntimeContexts class core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/IHaveRuntimeContexts.php Defines a class for a context-aware block.
IHaveRuntimeContexts.php file core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php
IHaveRuntimeContexts.php file core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/IHaveRuntimeContexts.php
IHaveRuntimeContexts::build function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Block/IHaveRuntimeContexts.php Builds and returns the renderable array for this block plugin.
IHaveRuntimeContexts::getAvailableContexts function core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php Gets all available contexts for the purposes of configuration.
IHaveRuntimeContexts::getRuntimeContexts function core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php Gets runtime context values for the given context IDs.
InaccessibleMenuLink::getCacheContexts function core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php The cache contexts associated with this object.
InstallerAccessPolicy::getPersistentCacheContexts function core/lib/Drupal/Core/Installer/InstallerAccessPolicy.php Gets the persistent cache contexts.
LayoutBuilderContextTrait::getPopulatedContexts function core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php Returns all populated contexts, both global and section-storage-specific.
LayoutBuilderEntityViewDisplay::getContextsForEntity function core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php Gets the available contexts for a given entity.
LayoutBuilderTest::testLayoutBuilderContexts function core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php Tests the Layout Builder UI with a context defined at runtime.
layout_builder_test.i_have_runtime_contexts service core/modules/layout_builder/tests/modules/layout_builder_test/layout_builder_test.services.yml Drupal\layout_builder_test\ContextProvider\IHaveRuntimeContexts
LazyContextRepository::$contexts property core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php The statically cached contexts.
LazyContextRepository::getAvailableContexts function core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php Gets all available contexts for the purposes of configuration.
LazyContextRepository::getRuntimeContexts function core/lib/Drupal/Core/Plugin/Context/LazyContextRepository.php Gets runtime context values for the given context IDs.
LazyContextRepositoryTest::testGetAvailableContexts function core/tests/Drupal/Tests/Core/Plugin/Context/LazyContextRepositoryTest.php @covers ::getAvailableContexts
LazyContextRepositoryTest::testGetRuntimeContextsSingle function core/tests/Drupal/Tests/Core/Plugin/Context/LazyContextRepositoryTest.php @covers ::getRuntimeContexts
LazyContextRepositoryTest::testGetRuntimeMultipleContextsPerService function core/tests/Drupal/Tests/Core/Plugin/Context/LazyContextRepositoryTest.php @covers ::getRuntimeContexts
LocalActionDefault::getCacheContexts function core/lib/Drupal/Core/Menu/LocalActionDefault.php The cache contexts associated with this object.
LocalTaskDefault::getCacheContexts function core/lib/Drupal/Core/Menu/LocalTaskDefault.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.