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
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
RedirectResponseSubscriber::$requestContext property core/lib/Drupal/Core/EventSubscriber/RedirectResponseSubscriber.php The request context.
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 Executes a callable within a render context.
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 Checks whether a render context is active.
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.
RequestContext class core/lib/Drupal/Core/Routing/RequestContext.php Holds information about the current request.
RequestContext.php file core/lib/Drupal/Core/Routing/RequestContext.php
RequestContext::$completeBaseUrl property core/lib/Drupal/Core/Routing/RequestContext.php The scheme, host and base path, for example "http://example.com/d8".
RequestContext::fromRequest function core/lib/Drupal/Core/Routing/RequestContext.php
RequestContext::fromRequestStack function core/lib/Drupal/Core/Routing/RequestContext.php Populates the context from the current request from the request stack.
RequestContext::getCompleteBaseUrl function core/lib/Drupal/Core/Routing/RequestContext.php Gets the scheme, host and base path.
RequestContext::setCompleteBaseUrl function core/lib/Drupal/Core/Routing/RequestContext.php Sets the complete base URL for the Request context.
RequestFormatCacheContext class core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php Defines the RequestFormatCacheContext service, for "per format" caching.
RequestFormatCacheContext.php file core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
RequestFormatCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
RequestFormatCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
RequestFormatCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
RequestPath::getCacheContexts function core/modules/system/src/Plugin/Condition/RequestPath.php

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