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
TermContextTest.php file core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php
TermContextTest::$modules property core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php Modules to enable.
TermContextTest::setUp function core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php
TermContextTest::testGetAvailableContexts function core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php @covers ::getAvailableContexts
TermContextTest::testGetRuntimeContexts function core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php @covers ::getRuntimeContexts
TermContextualLinksTest class core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php Tests views contextual links on terms.
TermContextualLinksTest.php file core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php
TermContextualLinksTest::$defaultTheme property core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php The theme to install as the default for testing.
TermContextualLinksTest::$modules property core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php Modules to enable.
TermContextualLinksTest::testTermContextualLinks function core/modules/taxonomy/tests/src/Functional/TermContextualLinksTest.php Tests contextual links.
TermResourceTestBase::getExpectedCacheContexts function core/modules/taxonomy/tests/src/Functional/Rest/TermResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
TermRouteContext class core/modules/taxonomy/src/ContextProvider/TermRouteContext.php Sets the current taxonomy term as a context on taxonomy term routes.
TermRouteContext.php file core/modules/taxonomy/src/ContextProvider/TermRouteContext.php
TermRouteContext::$routeMatch property core/modules/taxonomy/src/ContextProvider/TermRouteContext.php The route match object.
TermRouteContext::getAvailableContexts function core/modules/taxonomy/src/ContextProvider/TermRouteContext.php Gets all available contexts for the purposes of configuration.
TermRouteContext::getRuntimeContexts function core/modules/taxonomy/src/ContextProvider/TermRouteContext.php Gets runtime context values for the given context IDs.
TermRouteContext::__construct function core/modules/taxonomy/src/ContextProvider/TermRouteContext.php Constructs a new TermRouteContext.
TermTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/TermTest.php The expected cache contexts for the GET/HEAD response of the test entity.
TermTranslationUITest::$defaultCacheContexts property core/modules/taxonomy/tests/src/Functional/TermTranslationUITest.php Default cache contexts expected on a non-translated entity.
TestCacheableDependency::$contexts property core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php
TestCacheableDependency::getCacheContexts function core/tests/Drupal/Tests/Core/Render/TestCacheableDependency.php The cache contexts associated with this object.
TestCacheBlock::getCacheContexts function core/modules/block/tests/modules/block_test/src/Plugin/Block/TestCacheBlock.php
TestConfigurableContextAwarePlugin class core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php
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
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 Plugin annotation

@Layout(
id = "layout_builder_test_context_aware",
label = @Translation("Layout Builder Test: Context Aware"),
regions = {
"main" = {
"label" = @Translation("Main Region")
}
},
context_definitions = {
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 Build a render array for layout with regions.
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
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
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.
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.

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