Search for context

  1. Search 7.x for context
  2. Search 9.5.x for context
  3. Search 8.9.x for context
  4. Search 10.3.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
CacheContextsPass.php file core/lib/Drupal/Core/Cache/Context/CacheContextsPass.php
CacheContextsPass::process function core/lib/Drupal/Core/Cache/Context/CacheContextsPass.php Implements CompilerPassInterface::process().
CacheTest::mergeCacheContextsProvide function core/tests/Drupal/Tests/Core/Cache/CacheTest.php Provides a list of pairs of cache contexts arrays to be merged.
CacheTest::testCacheContextIntegration function core/modules/views/tests/src/Kernel/Plugin/CacheTest.php Tests the cache context integration for views result cache.
CacheTest::testMergeCacheContexts function core/tests/Drupal/Tests/Core/Cache/CacheTest.php @covers ::mergeContexts
cache_context.config_override_integration_test service core/modules/config/tests/config_override_integration_test/config_override_integration_test.services.yml Drupal\config_override_integration_test\Cache\ConfigOverrideIntegrationTestCacheContext
cache_context.entity_test_view_grants service core/modules/system/tests/modules/entity_test/entity_test.services.yml Drupal\entity_test\Cache\EntityTestViewGrantsCacheContext
cache_context.layout_builder_is_active service core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext
cache_context.pirate_day service core/modules/config/tests/config_override_test/config_override_test.services.yml Drupal\config_override_test\Cache\PirateDayCacheContext
cache_context.route.book_navigation service core/modules/book/book.services.yml Drupal\book\Cache\BookNavigationCacheContext
cache_context.route.name.is_layout_builder_ui service core/modules/layout_builder/layout_builder.services.yml Drupal\layout_builder\Cache\LayoutBuilderUiCacheContext
cache_context.user.node_grants service core/modules/node/node.services.yml Drupal\node\Cache\NodeAccessGrantsCacheContext
cache_context.views_test_cache_context service core/modules/views/tests/modules/views_test_data/views_test_data.services.yml Drupal\views_test_data\Cache\ViewsTestCacheContext
cache_context.workspace service core/modules/workspaces/workspaces.services.yml Drupal\workspaces\WorkspaceCacheContext
CalculatedCacheContextInterface interface core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Provides an interface for defining a calculated cache context service.
CalculatedCacheContextInterface.php file core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php
CalculatedCacheContextInterface::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Gets the cacheability metadata for the context based on the parameter value.
CalculatedCacheContextInterface::getContext function core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Returns the string representation of the cache context.
CalculatedCacheContextInterface::getLabel function core/lib/Drupal/Core/Cache/Context/CalculatedCacheContextInterface.php Returns the label of the cache context.
ClaroLayoutBuilderTest::testContextualLinks function core/tests/Drupal/FunctionalTests/Theme/ClaroLayoutBuilderTest.php Tests the layout builder has expected contextual links with Claro.
ClaroMenuUiJavascriptTest::testBlockContextualLinks function core/tests/Drupal/FunctionalJavascriptTests/Theme/ClaroMenuUiJavascriptTest.php Intentionally empty method.
CommentCacheTagsTest::getAdditionalCacheContextsForEntity function core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php
CommentCacheTagsTest::getDefaultCacheContexts function core/modules/comment/tests/src/Functional/CommentCacheTagsTest.php
CommentResourceTestBase::getExpectedCacheContexts function core/modules/comment/tests/src/Functional/Rest/CommentResourceTestBase.php
CommentTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/CommentTest.php The expected cache contexts for the GET/HEAD response of the test entity.
CommentTranslationUITest::$defaultCacheContexts property core/modules/comment/tests/src/Functional/CommentTranslationUITest.php
ComponentLoader::getSourceContext function core/lib/Drupal/Core/Template/Loader/ComponentLoader.php
ComponentsTwigExtension::addAdditionalContext function core/lib/Drupal/Core/Template/ComponentsTwigExtension.php Appends additional context to the template based on the template id.
ComponentsTwigExtension::mergeAdditionalRenderContext function core/lib/Drupal/Core/Template/ComponentsTwigExtension.php Calculates additional context for this template.
ComputedString::getCacheContexts function core/modules/system/tests/modules/entity_test/src/TypedData/ComputedString.php
Condition::$context_definitions property core/lib/Drupal/Core/Condition/Annotation/Condition.php An array of context definitions describing the context used by the plugin.
ConditionPluginCollection::$conditionContexts property core/lib/Drupal/Core/Condition/ConditionPluginCollection.php An array of collected contexts for conditions.
ConditionPluginCollection::addContext function core/lib/Drupal/Core/Condition/ConditionPluginCollection.php Sets the condition context for a given name.
ConditionPluginCollection::getConditionContexts function core/lib/Drupal/Core/Condition/ConditionPluginCollection.php Gets the values for all defined contexts.
ConfigBase::getCacheContexts function core/lib/Drupal/Core/Config/ConfigBase.php
ConfigEntityMapper::getContextualLinkGroup function core/modules/config_translation/src/ConfigEntityMapper.php
ConfigMapperInterface::getContextualLinkGroup function core/modules/config_translation/src/ConfigMapperInterface.php Returns the name of the contextual link group to add contextual links to.
ConfigNamesMapper::getContextualLinkGroup function core/modules/config_translation/src/ConfigNamesMapper.php
ConfigOverrideIntegrationTestCacheContext class core/modules/config/tests/config_override_integration_test/src/Cache/ConfigOverrideIntegrationTestCacheContext.php A cache context service intended for the config override integration test.
ConfigOverrideIntegrationTestCacheContext.php file core/modules/config/tests/config_override_integration_test/src/Cache/ConfigOverrideIntegrationTestCacheContext.php
ConfigOverrideIntegrationTestCacheContext::getCacheableMetadata function core/modules/config/tests/config_override_integration_test/src/Cache/ConfigOverrideIntegrationTestCacheContext.php
ConfigOverrideIntegrationTestCacheContext::getContext function core/modules/config/tests/config_override_integration_test/src/Cache/ConfigOverrideIntegrationTestCacheContext.php
ConfigOverrideIntegrationTestCacheContext::getLabel function core/modules/config/tests/config_override_integration_test/src/Cache/ConfigOverrideIntegrationTestCacheContext.php
ConfigTranslationContextualLink class core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php Defines a contextual link plugin with a dynamic title.
ConfigTranslationContextualLink.php file core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php
ConfigTranslationContextualLink::$mapperManager property core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php The mapper plugin discovery service.
ConfigTranslationContextualLink::getTitle function core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php
ConfigTranslationContextualLink::mapperManager function core/modules/config_translation/src/Plugin/Menu/ContextualLink/ConfigTranslationContextualLink.php Gets the mapper manager.
ConfigTranslationContextualLinks class core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php Provides dynamic contextual links for configuration translation.
ConfigTranslationContextualLinks.php file core/modules/config_translation/src/Plugin/Derivative/ConfigTranslationContextualLinks.php

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