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
IHaveRuntimeContexts::getAvailableContexts function core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php Gets all available contexts for the purposes of configuration.
IHaveRuntimeContexts::getRuntimeContexts function core/modules/layout_builder/tests/modules/layout_builder_test/src/ContextProvider/IHaveRuntimeContexts.php Gets runtime context values for the given context IDs.
InaccessibleMenuLink::getCacheContexts function core/lib/Drupal/Core/Menu/InaccessibleMenuLink.php The cache contexts associated with this object.
InheritedContextDefinition class core/tests/Drupal/Tests/Core/Plugin/Fixtures/InheritedContextDefinition.php Inherited class used for testing.
InheritedContextDefinition.php file core/tests/Drupal/Tests/Core/Plugin/Fixtures/InheritedContextDefinition.php
IpCacheContext class core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Defines the IpCacheContext service, for "per IP address" caching.
IpCacheContext.php file core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
IpCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Gets the cacheability metadata for the context.
IpCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Returns the string representation of the cache context.
IpCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Returns the label of the cache context.
IsFrontPathCacheContext class core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php Defines a cache context for whether the URL is the front page of the site.
IsFrontPathCacheContext.php file core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsFrontPathCacheContext::$pathMatcher property core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsFrontPathCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php Gets the cacheability metadata for the context.
IsFrontPathCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php Returns the string representation of the cache context.
IsFrontPathCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php Returns the label of the cache context.
IsFrontPathCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php Constructs an IsFrontPathCacheContext object.
IsFrontPathCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\IsFrontPathCacheContext
@group Cache
IsFrontPathCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php
IsFrontPathCacheContextTest::createPathMatcher function core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php Creates a PathMatcherInterface prophecy.
IsFrontPathCacheContextTest::testGetContextFront function core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php @covers ::getContext
IsFrontPathCacheContextTest::testGetContextNotFront function core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php @covers ::getContext
IsSuperUserCacheContext class core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php Defines the IsSuperUserCacheContext service, for "super user or not" caching.
IsSuperUserCacheContext.php file core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php
IsSuperUserCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php Gets the cacheability metadata for the context.
IsSuperUserCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php Returns the string representation of the cache context.
IsSuperUserCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php Returns the label of the cache context.
ItemHalJsonTestBase::getExpectedCacheContexts function core/modules/hal/tests/src/Functional/aggregator/ItemHalJsonTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
ItemResourceTestBase::getExpectedCacheContexts function core/modules/aggregator/tests/src/Functional/Rest/ItemResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
language.current_language_context service core/core.services.yml Drupal\Core\Language\ContextProvider\CurrentLanguageContext
LanguageNegotiationUserAdmin::$adminContext property core/modules/user/src/Plugin/LanguageNegotiation/LanguageNegotiationUserAdmin.php The admin context.
LanguagesCacheContext class core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php Defines the LanguagesCacheContext service, for "per language" caching.
LanguagesCacheContext.php file core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php
LanguagesCacheContext::$languageManager property core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php The language manager.
LanguagesCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
LanguagesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php $type can be NULL, or one of the language types supported by the language
manager, typically:
LanguagesCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php Returns the label of the cache context.
LanguagesCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/LanguagesCacheContext.php Constructs a new LanguagesCacheContext service.
layout-builder-context-mapping.php file core/modules/layout_builder/tests/fixtures/update/layout-builder-context-mapping.php Test context mapping update path by adding a layout without a context map.
LayoutBuilderContextMappingUpdatePathTest class core/modules/layout_builder/tests/src/Functional/Update/LayoutBuilderContextMappingUpdatePathTest.php Tests the upgrade path for Layout Builder layout context mappings.
LayoutBuilderContextMappingUpdatePathTest.php file core/modules/layout_builder/tests/src/Functional/Update/LayoutBuilderContextMappingUpdatePathTest.php
LayoutBuilderContextMappingUpdatePathTest::setDatabaseDumpFiles function core/modules/layout_builder/tests/src/Functional/Update/LayoutBuilderContextMappingUpdatePathTest.php Set database dump files to be used.
LayoutBuilderContextMappingUpdatePathTest::testRunUpdates function core/modules/layout_builder/tests/src/Functional/Update/LayoutBuilderContextMappingUpdatePathTest.php Tests the upgrade path for Layout Builder layout context mappings.
LayoutBuilderContextTrait trait core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php Provides a wrapper around getting contexts from a section storage object.
LayoutBuilderContextTrait.php file core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php
LayoutBuilderContextTrait::$contextRepository property core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php The context repository.
LayoutBuilderContextTrait::contextRepository function core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php Gets the context repository service.
LayoutBuilderContextTrait::getAvailableContexts function core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php Provides all available contexts, both global and section_storage-specific.
LayoutBuilderContextTrait::getPopulatedContexts function core/modules/layout_builder/src/Context/LayoutBuilderContextTrait.php Returns all populated contexts, both global and section-storage-specific.
LayoutBuilderDisableInteractionsTest::assertContextualLinkRetainsMouseup function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php Makes sure contextual links respond to mouseup event.

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