Search for context

  1. Search 7.x for context
  2. Search 9.5.x for context
  3. Search 10.3.x for context
  4. Search 11.x for context
  5. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Context class core/lib/Drupal/Core/Plugin/Context/Context.php A Drupal specific context wrapper class.
Context class core/lib/Drupal/Component/Plugin/Context/Context.php A generic context class for wrapping data a plugin needs to operate.

All search results

Title Object type File name Summary
ExecutionContextFactory::$translator property core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php
ExecutionContextFactory::createContext function core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php
ExecutionContextFactory::__construct function core/lib/Drupal/Core/TypedData/Validation/ExecutionContextFactory.php Constructs a new ExecutionContextFactory instance.
ExposedFormPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/exposed_form/ExposedFormPluginBase.php The cache contexts associated with this object.
FakeViewModeContext class core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php Provides a global context for view_mode for testing purposes.
FakeViewModeContext.php file core/modules/layout_builder/tests/modules/layout_builder_fieldblock_test/src/ContextProvider/FakeViewModeContext.php
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.
FieldStorageConfigResourceTestBase::getExpectedCacheContexts function core/modules/field/tests/src/Functional/Rest/FieldStorageConfigResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
FileHalJsonAnonTest::getExpectedCacheContexts function core/modules/file/tests/src/Functional/Hal/FileHalJsonAnonTest.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.
FinishResponseSubscriber::$cacheContexts property core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php The cache contexts manager service.
Fixed::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/Fixed.php The cache contexts associated with this object.
FooCacheContext class core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Fake cache context class.
FooCacheContext::getCacheableMetadata function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Gets the cacheability metadata for the context.
FooCacheContext::getContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Returns the string representation of the cache context.
FooCacheContext::getLabel function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Returns the label of the cache context.
ForumBlockBase::getCacheContexts function core/modules/forum/src/Plugin/Block/ForumBlockBase.php
HeadersCacheContext class core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Defines the HeadersCacheContext service, for "per header" caching.
HeadersCacheContext.php file core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
HeadersCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
HeadersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Returns the string representation of the cache context.
HeadersCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Returns the label of the cache context.
HeadersCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\HeadersCacheContext
@group Cache
HeadersCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php
HeadersCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php Provides a list of headers and expected cache contexts.
HeadersCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @covers ::getContext
HelpBlock::getCacheContexts function core/modules/help/src/Plugin/Block/HelpBlock.php
HelpTopicSection::getCacheContexts function core/modules/help_topics/src/Plugin/HelpSection/HelpTopicSection.php
HelpTopicTwig::getCacheContexts function core/modules/help_topics/src/HelpTopicTwig.php The cache contexts associated with this object.
HelpTopicTwigLoader::getSourceContext function core/modules/help_topics/src/HelpTopicTwigLoader.php
HelpTopicTwigLoaderTest::testGetSourceContext function core/modules/help_topics/tests/src/Unit/HelpTopicTwigLoaderTest.php @covers ::getSourceContext
HelpTopicTwigLoaderTest::testGetSourceContextException function core/modules/help_topics/tests/src/Unit/HelpTopicTwigLoaderTest.php @covers ::getSourceContext
hook_contextual_links_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter contextual links before they are rendered.
hook_contextual_links_plugins_alter function core/lib/Drupal/Core/Menu/menu.api.php Alter the plugin definition of contextual links.
hook_contextual_links_view_alter function core/modules/contextual/contextual.api.php Alter a contextual links element before it is rendered.
IFrameUrlHelper::$requestContext property core/modules/media/src/IFrameUrlHelper.php The request context service.
InaccessibleMenuLink::getCacheContexts function core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php The cache contexts associated with this object.
InheritedContextDefinition class core/tests/Drupal/Tests/Core/Plugin/Fixtures/InheritedContextDefinition.php Inherited class used for testing.
InheritedContextDefinition.php file core/tests/Drupal/Tests/Core/Plugin/Fixtures/InheritedContextDefinition.php
IpCacheContext class core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Defines the IpCacheContext service, for "per IP address" caching.
IpCacheContext.php file core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
IpCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Gets the cacheability metadata for the context.
IpCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Returns the string representation of the cache context.
IpCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Returns the label of the cache context.

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