Search for context

  1. Search 7.x for context
  2. Search 8.9.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
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.
TestFilteredPluginManager::$contextHandler property core/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php
TestFilteredPluginManager::contextHandler function core/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php Wraps the context handler.
TestHelpTopicPlugin::getCacheContexts function core/modules/help_topics/tests/modules/help_topics_test/src/Plugin/HelpTopic/TestHelpTopicPlugin.php The cache contexts associated with this object.
TestLoader::getSourceContext function core/modules/system/tests/modules/twig_loader_test/src/Loader/TestLoader.php
TestStateBasedSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/TestStateBasedSectionStorage.php Derives the available plugin contexts from route values.
TextEditorObjectDependentValidatorTrait::createTextEditorObjectFromContext function core/modules/ckeditor5/src/Plugin/Validation/Constraint/TextEditorObjectDependentValidatorTrait.php Creates a text editor object from the execution context.
TextProcessed::getCacheContexts function core/modules/text/src/TextProcessed.php The cache contexts associated with this object.
ThemeCacheContext class core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php Defines the ThemeCacheContext service, for "per theme" caching.
ThemeCacheContext.php file core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php
ThemeCacheContext::$themeManager property core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php The theme manager.
ThemeCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php Gets the cacheability metadata for the context.
ThemeCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php Returns the string representation of the cache context.
ThemeCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php Returns the label of the cache context.
ThemeCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php Constructs a new ThemeCacheContext service.
Tid::getCacheContexts function core/modules/taxonomy/src/Plugin/views/argument_default/Tid.php The cache contexts associated with this object.
TimeZoneCacheContext class core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Defines the TimeZoneCacheContext service, for "per time zone" caching.
TimeZoneCacheContext.php file core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
TimeZoneCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Gets the cacheability metadata for the context.
TimeZoneCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Returns the string representation of the cache context.
TimeZoneCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Returns the label of the cache context.
TitleResolverTest::testStaticTitleWithContext function core/tests/Drupal/Tests/Core/Controller/TitleResolverTest.php Tests a static title with a context.
TokenTest::$cacheContextManager property core/tests/Drupal/Tests/Core/Utility/TokenTest.php The cache contexts manager.
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 The theme to install as the default for testing.
ToolbarCacheContextsTest::$modules property core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Modules to enable.
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.
ToolbarCacheContextsTest::setUp function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php
ToolbarCacheContextsTest::testCacheIntegration function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests toolbar cache integration.
ToolbarCacheContextsTest::testToolbarCacheContextsCaller function core/modules/toolbar/tests/src/Functional/ToolbarCacheContextsTest.php Tests toolbar cache contexts.
TourResourceTestBase::getExpectedCacheContexts function core/modules/tour/tests/src/Functional/Rest/TourResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
TranslationLanguageRenderer::getCacheContexts function core/modules/views/src/Entity/Render/TranslationLanguageRenderer.php The cache contexts associated with this object.
TypedData::setContext function core/lib/Drupal/Core/TypedData/TypedData.php Sets the context of a property or item via a context aware parent.
TypedDataInterface::setContext function core/lib/Drupal/Core/TypedData/TypedDataInterface.php Sets the context of a property or item via a context aware parent.
UncacheableDependencyTrait::getCacheContexts function core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php
UnchangingCacheableDependencyTrait::getCacheContexts function core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php
UrlCacheContext class core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php Defines the UrlCacheContext service, for "per page" caching.
UrlCacheContext.php file core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php
UrlCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php Gets the cacheability metadata for the context.
UrlCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php Returns the string representation of the cache context.
UrlCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php Returns the label of the cache context.
UrlGenerator::$context property core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::getContext function core/lib/Drupal/Core/Routing/UrlGenerator.php
UrlGenerator::setContext function core/lib/Drupal/Core/Routing/UrlGenerator.php

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