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. Search 11.x for context
  6. 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
ResourceTestBase::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/ResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
ResourceVersionRouteEnhancer::CACHE_CONTEXT constant core/modules/jsonapi/src/Revisions/ResourceVersionRouteEnhancer.php The cache context by which vary the loaded entity revision.
ResponseStatus::getCacheContexts function core/modules/system/src/Plugin/Condition/ResponseStatus.php
RestResourceConfigResourceTestBase::getExpectedCacheContexts function core/modules/rest/tests/src/Functional/Rest/RestResourceConfigResourceTestBase.php
Role::getCacheContexts function core/modules/user/src/Plugin/views/access/Role.php
RouteCacheContext class core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php Defines the RouteCacheContext service, for "per route" caching.
RouteCacheContext.php file core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
RouteCacheContext::$routeMatch property core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php The route match.
RouteCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
RouteCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
RouteCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
RouteCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php Constructs a new RouteCacheContext class.
RouteNameCacheContext class core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php Defines the RouteCacheContext service, for "per route name" caching.
RouteNameCacheContext.php file core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php
RouteNameCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php
RouteNameCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php
router.admin_context service core/core.services.yml Drupal\Core\Routing\AdminContext
router.request_context service core/core.services.yml Drupal\Core\Routing\RequestContext
Section::contextHandler function core/modules/layout_builder/src/Section.php Wraps the context handler.
SectionComponent::contextHandler function core/modules/layout_builder/src/SectionComponent.php Wraps the context handler.
SectionComponentBuildRenderArrayEvent::$contexts property core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php The available contexts.
SectionComponentBuildRenderArrayEvent::getContexts function core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php Get the available contexts.
SectionRenderTest::$contextHandler property core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php The plugin context handler.
SectionRenderTest::$contextRepository property core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php The context manager service.
SectionRenderTest::testContextAwareBlock function core/modules/layout_builder/tests/src/Unit/SectionRenderTest.php Tests context aware block.
SectionStorage::$context_definitions property core/modules/layout_builder/src/Annotation/SectionStorage.php Any required context definitions, optional.
SectionStorageBase::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php
SectionStorageInterface::deriveContextsFromRoute function core/modules/layout_builder/src/SectionStorageInterface.php Derives the available plugin contexts from route values.
SectionStorageInterface::getContextsDuringPreview function core/modules/layout_builder/src/SectionStorageInterface.php Gets contexts for use during preview.
SectionStorageManager::$contextHandler property core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php The context handler.
SectionStorageManager::findByContext function core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php
SectionStorageManagerInterface::findByContext function core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php Finds the section storage to load based on available contexts.
SectionStorageManagerTest::$contextHandler property core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php The context handler.
SectionStorageManagerTest::providerTestFindByContext function core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php Provides test data for ::testFindByContext().
SectionStorageManagerTest::testFindByContext function core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php Tests find by context.
SectionStorageManagerTest::testFindByContextCacheableSectionStorage function core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php Tests find by context cacheable section storage.
Serializer::getCacheContexts function core/modules/rest/src/Plugin/views/style/Serializer.php
SessionCacheContext class core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php Defines the SessionCacheContext service, for "per session" caching.
SessionCacheContext.php file core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
SessionCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
SessionCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
SessionCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php Tests Drupal\Core\Cache\Context\SessionCacheContext.
SessionCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php
SessionCacheContextTest::$request property core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php The request.
SessionCacheContextTest::$requestStack property core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php The request stack.
SessionCacheContextTest::$session property core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php The session object.
SessionCacheContextTest::setUp function core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php
SessionCacheContextTest::testDifferentContextForDifferentSession function core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php Tests different context for different session.
SessionCacheContextTest::testSameContextForSameSession function core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php Tests same context for same session.
SessionExistsCacheContext class core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php Defines the SessionExistsCacheContext service, for "session or not" caching.

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