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
RecursiveContextualValidatorTest::setUp function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php
RecursiveContextualValidatorTest::setupTypedData function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php Setups a typed data object used for test purposes.
RecursiveContextualValidatorTest::testBasicValidateWithConstraint function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validate
RecursiveContextualValidatorTest::testBasicValidateWithMultipleConstraints function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validate
RecursiveContextualValidatorTest::testBasicValidateWithoutConstraints function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validate
RecursiveContextualValidatorTest::testPropertiesValidateWithMultipleLevels function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validate
RecursiveContextualValidatorTest::testRecursiveValidate function core/tests/Drupal/KernelTests/Core/TypedData/RecursiveContextualValidatorTest.php Tests recursive validation against given constraints against an entity.
RecursiveContextualValidatorTest::testRecursiveViolationPropagation function core/tests/Drupal/KernelTests/Core/TypedData/RecursiveContextualValidatorTest.php Tests recursive propagation of violations.
RecursiveContextualValidatorTest::testValidateProperty function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validateProperty
RecursiveContextualValidatorTest::testValidatePropertyValue function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validatePropertyValue
RecursiveContextualValidatorTest::testValidatePropertyValueWithInvalidObjects function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validatePropertyValue
RecursiveContextualValidatorTest::testValidatePropertyWithCustomGroup function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validateProperty
RecursiveContextualValidatorTest::testValidatePropertyWithInvalidObjects function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php @covers ::validateProperty
RecursiveContextualValidatorTest::testValidateWithGroups function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php Ensures that passing an explicit group is not supported.
RecursiveContextualValidatorTest::testValidateWithoutTypedData function core/tests/Drupal/Tests/Core/TypedData/RecursiveContextualValidatorTest.php Ensures that passing a non typed data value is not supported.
RecursiveValidator::$contextFactory property core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php
RecursiveValidator::inContext function core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php
RecursiveValidator::startContext function core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php
RedirectResponseSubscriberTest::$requestContext property core/tests/Drupal/Tests/Core/EventSubscriber/RedirectResponseSubscriberTest.php The mocked request context.
RefinableCacheableDependencyInterface::addCacheContexts function core/lib/Drupal/Core/Cache/RefinableCacheableDependencyInterface.php Adds cache contexts.
RefinableCacheableDependencyTrait::addCacheContexts function core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php
Relationship::$context property core/modules/jsonapi/src/JsonApiResource/Relationship.php The context resource object of the relationship.
Relationship::getContext function core/modules/jsonapi/src/JsonApiResource/Relationship.php Gets context resource object of the relationship.
RenderCache::$cacheContextsManager property core/lib/Drupal/Core/Render/RenderCache.php The cache contexts manager.
RenderCacheIntegrationTest::testBuildRenderableWithCacheContexts function core/modules/views/tests/src/Kernel/RenderCacheIntegrationTest.php Ensure that the view renderable contains the cache contexts.
RenderCacheTest::doTestUser1WithContexts function core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php Ensures that user 1 has a unique render cache for the given context.
RenderCacheTest::testUser1PermissionContext function core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php Tests that user 1 has a different permission context with the same roles.
RenderCacheTest::testUser1RolesContext function core/tests/Drupal/KernelTests/Core/Render/RenderCacheTest.php Tests that user 1 has a different roles context with the same roles.
RenderContext class core/lib/Drupal/Core/Render/RenderContext.php The render context: a stack containing bubbleable rendering metadata.
RenderContext.php file core/lib/Drupal/Core/Render/RenderContext.php
RenderContext::bubble function core/lib/Drupal/Core/Render/RenderContext.php Bubbles the stack.
RenderContext::update function core/lib/Drupal/Core/Render/RenderContext.php Updates the current frame of the stack.
RenderedEntity::getCacheContexts function core/modules/views/src/Plugin/views/field/RenderedEntity.php The cache contexts associated with this object.
Renderer::$contextCollection property core/lib/Drupal/Core/Render/Renderer.php The render context collection.
Renderer::executeInRenderContext function core/lib/Drupal/Core/Render/Renderer.php
Renderer::getCurrentRenderContext function core/lib/Drupal/Core/Render/Renderer.php Returns the current render context.
Renderer::hasRenderContext function core/lib/Drupal/Core/Render/Renderer.php
Renderer::setCurrentRenderContext function core/lib/Drupal/Core/Render/Renderer.php Sets the current render context.
RendererBase::getCacheContexts function core/modules/views/src/Entity/Render/RendererBase.php The cache contexts associated with this object.
RendererBubblingTest::providerTestContextBubblingEdgeCases function core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php
RendererBubblingTest::testConditionalCacheContextBubblingSelfHealing function core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php Tests the self-healing of the redirect with conditional cache contexts.
RendererBubblingTest::testContextBubblingCustomCacheBin function core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php Tests cache context bubbling with a custom cache bin.
RendererBubblingTest::testContextBubblingEdgeCases function core/tests/Drupal/Tests/Core/Render/RendererBubblingTest.php Tests cache context bubbling in edge cases, because it affects the CID.
RendererInterface::executeInRenderContext function core/lib/Drupal/Core/Render/RendererInterface.php Executes a callable within a render context.
RendererInterface::hasRenderContext function core/lib/Drupal/Core/Render/RendererInterface.php Checks whether a render context is active.
RendererPlaceholdersTest::testNonScalarLazyBuilderCallbackContext function core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php @covers ::render
@covers ::doRender
RendererPlaceholdersTest::testScalarLazyBuilderCallbackContext function core/tests/Drupal/Tests/Core/Render/RendererPlaceholdersTest.php @covers ::render
@covers ::doRender
RendererTestBase::$cacheContextsManager property core/tests/Drupal/Tests/Core/Render/RendererTestBase.php
RendererTestBase::randomContextValue function core/tests/Drupal/Tests/Core/Render/RendererTestBase.php Generates a random context value for the placeholder tests.
RenderWebTest::testWrapperFormatCacheContext function core/modules/system/tests/src/Functional/Common/RenderWebTest.php Asserts the cache context for the wrapper format is always present.

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