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
TestCacheOptionalBlock::getCacheContexts function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheOptionalBlock.php
TestConfigurableContextAwarePlugin class core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Configurable context aware plugin test class.
TestConfigurableContextAwarePlugin::defaultConfiguration function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Gets default configuration for this plugin.
TestConfigurableContextAwarePlugin::getConfiguration function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Gets this plugin's configuration.
TestConfigurableContextAwarePlugin::setConfiguration function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Sets the configuration for this plugin instance.
TestConfigurableContextAwarePluginInterface interface core/tests/Drupal/Tests/Core/Plugin/ContextHandlerTest.php Test interface used for creating mock classes in tests.
TestContextAwareBlock class core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareBlock.php Provides a context-aware block.
TestContextAwareBlock.php file core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareBlock.php
TestContextAwareBlock::blockAccess function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareBlock.php Indicates whether the block should be shown.
TestContextAwareBlock::build function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareBlock.php Builds and returns the renderable array for this block plugin.
TestContextAwareLayout class core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Layout/TestContextAwareLayout.php The TestContextAwareLayout Class.
TestContextAwareLayout.php file core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Layout/TestContextAwareLayout.php
TestContextAwareLayout::build function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/Layout/TestContextAwareLayout.php
TestContextAwareNoValidContextOptionsBlock class core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareNoValidContextOptionsBlock.php Provides a context-aware block that uses a not-passed, non-required context.
TestContextAwareNoValidContextOptionsBlock.php file core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareNoValidContextOptionsBlock.php
TestContextAwareNoValidContextOptionsBlock::build function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareNoValidContextOptionsBlock.php Builds and returns the renderable array for this block plugin.
TestContextAwarePlugin class core/tests/Drupal/KernelTests/Core/Plugin/ContextHandlerTest.php Provides a test implementation of a context-aware plugin.
TestContextAwarePlugin class core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Context aware plugin test class.
TestContextAwarePlugin::$setContextCalled property core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Indicates if ::setContext() has been called or not.
TestContextAwarePlugin::setContext function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Set a context on this plugin.
TestContextAwarePluginDefinition class core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php A plugin definition test class.
TestContextAwareUnsatisfiedBlock class core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareUnsatisfiedBlock.php Provides a context-aware block.
TestContextAwareUnsatisfiedBlock.php file core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareUnsatisfiedBlock.php
TestContextAwareUnsatisfiedBlock::build function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestContextAwareUnsatisfiedBlock.php Builds and returns the renderable array for this block plugin.
TestContextualLink class core/modules/system/tests/modules/menu_test/src/Plugin/Menu/ContextualLink/TestContextualLink.php Defines a contextual link plugin with a dynamic title from user input.
TestContextualLink.php file core/modules/system/tests/modules/menu_test/src/Plugin/Menu/ContextualLink/TestContextualLink.php
TestContextualLink::getTitle function core/modules/system/tests/modules/menu_test/src/Plugin/Menu/ContextualLink/TestContextualLink.php Returns the localized title to be shown for this contextual link.
TestController::duplicateContextualLinks function core/modules/contextual/tests/modules/contextual_test/src/Controller/TestController.php Renders two regions with the same contextual links.
TestControllers::testContextual function core/modules/system/tests/modules/menu_test/src/TestControllers.php Prints out test data with contextual links.
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.
TestFilteredPluginManager::$contextHandler property core/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php The context handler.
TestFilteredPluginManager::contextHandler function core/tests/Drupal/Tests/Core/Plugin/FilteredPluginManagerTraitTest.php Wraps the context handler.
TestHelpTopicPlugin::getCacheContexts function core/modules/help/tests/modules/help_topics_test/src/Plugin/HelpTopic/TestHelpTopicPlugin.php
TestLoader::getSourceContext function core/modules/system/tests/modules/twig_loader_test/src/Loader/TestLoader.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
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
theme.negotiator.contextual_links service core/modules/contextual/contextual.services.yml Drupal\contextual\Theme\ContextualLinksNegotiator
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.

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