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
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 Modules to enable.
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.
NodeListBuilderTest::testCacheContexts function core/modules/node/tests/src/Kernel/NodeListBuilderTest.php Tests that the correct cache contexts are set.
NodeRevisionsTest::renderContextualLinks function core/modules/node/tests/src/Functional/NodeRevisionsTest.php Gets server-rendered contextual links for the given contextual links IDs.
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.
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.
NullGenerator::getContext function core/lib/Drupal/Core/Routing/NullGenerator.php
NullGenerator::setContext function core/lib/Drupal/Core/Routing/NullGenerator.php
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
OptionalContextCondition::summary function core/modules/system/tests/modules/condition_test/src/Plugin/Condition/OptionalContextCondition.php
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 enable.
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 @covers ::deriveContextsFromRoute
OverridesSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php @covers ::getContexts
OverridesSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php @covers ::getContextsDuringPreview
PageDisplayVariantSelectionEvent::$contexts property core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php An array of collected contexts to pass to the page display variant.
PageDisplayVariantSelectionEvent::getContexts function core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php Gets the contexts that were set during event dispatch.
PageDisplayVariantSelectionEvent::setContexts function core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php Sets the contexts to be passed to the page display variant.
PageRenderTest::testHtmlRendererAttachmentsRenderContext function core/modules/system/tests/src/Kernel/Common/PageRenderTest.php Tests HtmlRenderer::invokePageAttachmentHooks in a render context.
PagersCacheContext class core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php Defines a cache context for "per page in a pager" caching.
PagersCacheContext.php file core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
PagersCacheContext::$pagerParams property core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php The pager parameters.
PagersCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
PagersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php

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