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
NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing function core/modules/node/tests/src/Functional/NodeCacheTagsTest.php
NodeContextTestBlock class core/modules/node/tests/modules/node_block_test/src/Plugin/Block/NodeContextTestBlock.php Provides a 'Node Context Test' block.
NodeContextTestBlock.php file core/modules/node/tests/modules/node_block_test/src/Plugin/Block/NodeContextTestBlock.php
NodeContextTestBlock::build function core/modules/node/tests/modules/node_block_test/src/Plugin/Block/NodeContextTestBlock.php
NodeContextualLinksTest class core/modules/node/tests/src/Functional/NodeContextualLinksTest.php Tests views contextual links on nodes.
NodeContextualLinksTest class core/modules/node/tests/src/Functional/Views/NodeContextualLinksTest.php Tests views contextual links on nodes.
NodeContextualLinksTest.php file core/modules/node/tests/src/Functional/NodeContextualLinksTest.php
NodeContextualLinksTest.php file core/modules/node/tests/src/Functional/Views/NodeContextualLinksTest.php
NodeContextualLinksTest::$defaultTheme property core/modules/node/tests/src/Functional/NodeContextualLinksTest.php
NodeContextualLinksTest::$defaultTheme property core/modules/node/tests/src/Functional/Views/NodeContextualLinksTest.php
NodeContextualLinksTest::$modules property core/modules/node/tests/src/Functional/NodeContextualLinksTest.php
NodeContextualLinksTest::$modules property core/modules/node/tests/src/Functional/Views/NodeContextualLinksTest.php
NodeContextualLinksTest::testNodeContextualLinks function core/modules/node/tests/src/Functional/NodeContextualLinksTest.php Tests contextual links.
NodeContextualLinksTest::testPageWithDisabledContextualModule function core/modules/node/tests/src/Functional/Views/NodeContextualLinksTest.php Tests if the node page works if Contextual Links is disabled.
NodeDateArgumentDefaultPluginBase::getCacheContexts function core/modules/node/src/Plugin/views/argument_default/NodeDateArgumentDefaultPluginBase.php
NodeListBuilderTest::testCacheContexts function core/modules/node/tests/src/Kernel/NodeListBuilderTest.php Tests that the correct cache contexts are set.
NodeResourceTestBase::getExpectedCacheContexts function core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php
NodeRouteContext class core/modules/node/src/ContextProvider/NodeRouteContext.php Sets the current node as a context on node routes.
NodeRouteContext.php file core/modules/node/src/ContextProvider/NodeRouteContext.php
NodeRouteContext::$routeMatch property core/modules/node/src/ContextProvider/NodeRouteContext.php The route match object.
NodeRouteContext::getAvailableContexts function core/modules/node/src/ContextProvider/NodeRouteContext.php
NodeRouteContext::getRuntimeContexts function core/modules/node/src/ContextProvider/NodeRouteContext.php
NodeRouteContext::__construct function core/modules/node/src/ContextProvider/NodeRouteContext.php Constructs a new NodeRouteContext.
NodeTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/NodeTest.php
NodeTranslationUITest::$defaultCacheContexts property core/modules/node/tests/src/Functional/NodeTranslationUITest.php
NoOptimizeCacheContext class core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Non-optimizable context class.
NoOptimizeCacheContext::getCacheableMetadata function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Gets the cacheability metadata for the context.
NoOptimizeCacheContext::getContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Returns the string representation of the cache context.
NoOptimizeCacheContext::getLabel function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Returns the label of the cache context.
NumericArgument::getContextDefinition function core/modules/views/src/Plugin/views/argument/NumericArgument.php
NumericArgumentValidator::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php
OffCanvasTestBase::assertAllContextualLinksLoaded function core/modules/system/tests/src/FunctionalJavascript/OffCanvasTestBase.php Assert all contextual link areas have be loaded.
OptionalContextCondition class core/modules/system/tests/modules/condition_test/src/Plugin/Condition/OptionalContextCondition.php Provides a condition with an optional node context.
OptionalContextCondition.php file core/modules/system/tests/modules/condition_test/src/Plugin/Condition/OptionalContextCondition.php
OptionalContextCondition::evaluate function core/modules/system/tests/modules/condition_test/src/Plugin/Condition/OptionalContextCondition.php Evaluates the condition and returns TRUE or FALSE accordingly.
OptionalContextCondition::summary function core/modules/system/tests/modules/condition_test/src/Plugin/Condition/OptionalContextCondition.php Provides a human readable summary of the condition's configuration.
OptionalContextConditionTest class core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php Tests a condition with optional context.
OptionalContextConditionTest.php file core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php
OptionalContextConditionTest::$modules property core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php Modules to install.
OptionalContextConditionTest::testContextAvailable function core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php Tests with both contexts mapped to the same user.
OptionalContextConditionTest::testContextMissing function core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php Tests with both contexts mapped to the same user.
OptionalContextConditionTest::testContextNoValue function core/tests/Drupal/KernelTests/Core/Plugin/Condition/OptionalContextConditionTest.php Tests with both contexts mapped to the same user.
OverridesSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php
OverridesSectionStorageTest::testDeriveContextsFromRoute function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php Tests derive contexts from route.
OverridesSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php Tests get contexts.
OverridesSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php Tests get contexts during preview.
PageContext class core/modules/navigation/src/Plugin/TopBarItem/PageContext.php Provides the Page Context top bar item.
PageContext.php file core/modules/navigation/src/Plugin/TopBarItem/PageContext.php
PageContext::build function core/modules/navigation/src/Plugin/TopBarItem/PageContext.php

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