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 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
NodeAccessGrantsCacheContextTest::$accessUser property core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php User with permission to view content.
NodeAccessGrantsCacheContextTest::$defaultTheme property core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php The theme to install as the default for testing.
NodeAccessGrantsCacheContextTest::$modules property core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php Modules to install.
NodeAccessGrantsCacheContextTest::$noAccessUser property core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php User without permission to view content.
NodeAccessGrantsCacheContextTest::$noAccessUser2 property core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php User without permission to view content.
NodeAccessGrantsCacheContextTest::$userMapping property core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php
NodeAccessGrantsCacheContextTest::$usesSuperUserAccessPolicy property core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php @todo Remove and fix test to not rely on super user.
NodeAccessGrantsCacheContextTest::assertUserCacheContext function core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php Asserts that for each given user, the expected cache context is returned.
NodeAccessGrantsCacheContextTest::setUp function core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php
NodeAccessGrantsCacheContextTest::testCacheContext function core/modules/node/tests/src/Functional/NodeAccessGrantsCacheContextTest.php Tests NodeAccessGrantsCacheContext::getContext().
NodeCacheTagsTest::getAdditionalCacheContextsForEntity function core/modules/node/tests/src/Functional/NodeCacheTagsTest.php Returns the additional (non-standard) cache contexts for the tested entity.
NodeCacheTagsTest::getAdditionalCacheContextsForEntityListing function core/modules/node/tests/src/Functional/NodeCacheTagsTest.php Returns the additional cache tags for the tested entity's listing by type.
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 Builds and returns the renderable array for this block plugin.
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 The theme to install as the default for testing.
NodeContextualLinksTest::$defaultTheme property core/modules/node/tests/src/Functional/Views/NodeContextualLinksTest.php The theme to install as the default for testing.
NodeContextualLinksTest::$modules property core/modules/node/tests/src/Functional/NodeContextualLinksTest.php Modules to install.
NodeContextualLinksTest::$modules property core/modules/node/tests/src/Functional/Views/NodeContextualLinksTest.php Modules to install.
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.
NodeResourceTestBase::getExpectedCacheContexts function core/modules/node/tests/src/Functional/Rest/NodeResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
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 Gets all available contexts for the purposes of configuration.
NodeRouteContext::getRuntimeContexts function core/modules/node/src/ContextProvider/NodeRouteContext.php Gets runtime context values for the given context IDs.
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 Default cache contexts expected on a non-translated entity.
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 Returns a context definition for this argument.
NumericArgumentValidator::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php Returns a context definition for this argument.
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.

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