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
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.
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.
LayoutBuilderBlocksTest::testPluginsProvidingCustomAttributesAndContextualLinks function core/modules/layout_builder/tests/src/Functional/LayoutBuilderBlocksTest.php Tests that block plugins can define custom attributes and contextual links.
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::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.
LayoutBuilderDisableInteractionsTest::assertContextualLinksClickable function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderDisableInteractionsTest.php Confirms that Layout Builder contextual links remain active.
LayoutBuilderEntityViewDisplay::contextRepository function core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php Wraps the context repository service.
LayoutBuilderEntityViewDisplay::getContextsForEntity function core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php Gets the available contexts for a given entity.
LayoutBuilderIsActiveCacheContext class core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php Determines whether Layout Builder is active for a given entity type or not.
LayoutBuilderIsActiveCacheContext.php file core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php
LayoutBuilderIsActiveCacheContext::$routeMatch property core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php The current route match.
LayoutBuilderIsActiveCacheContext::getCacheableMetadata function core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php Gets the cacheability metadata for the context based on the parameter value.
LayoutBuilderIsActiveCacheContext::getContext function core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php Returns the string representation of the cache context.
LayoutBuilderIsActiveCacheContext::getDisplay function core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php Returns the entity view display for a given entity type and view mode.
LayoutBuilderIsActiveCacheContext::getLabel function core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php Returns the label of the cache context.
LayoutBuilderIsActiveCacheContext::__construct function core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php LayoutBuilderCacheContext constructor.
LayoutBuilderIsActiveCacheContextTest class core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php @coversDefaultClass \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext
LayoutBuilderIsActiveCacheContextTest.php file core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php
LayoutBuilderIsActiveCacheContextTest::providerTestGetContext function core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php Provides test data for ::testGetContext().
LayoutBuilderIsActiveCacheContextTest::testGetContext function core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php @covers ::getContext
@covers ::getDisplay
LayoutBuilderIsActiveCacheContextTest::testGetContextMissingEntityTypeId function core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php @covers ::getContext
LayoutBuilderIsActiveCacheContextTest::testGetContextNonFieldableEntity function core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php @covers ::getContext
@covers ::getDisplay
LayoutBuilderSectionStorageTest::testRenderByContextAwarePluginDelegate function core/modules/layout_builder/tests/src/Functional/LayoutBuilderSectionStorageTest.php Tests that section loading is delegated to plugins during rendering.
LayoutBuilderTest::clickContextualLink function core/modules/layout_builder/tests/src/FunctionalJavascript/LayoutBuilderTest.php @todo Remove this in https://www.drupal.org/project/drupal/issues/2918718.
LayoutBuilderTest::testContextAwareLayouts function core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php Tests that layouts can be context-aware.
LayoutBuilderTest::testLayoutBuilderContexts function core/modules/layout_builder/tests/src/Functional/LayoutBuilderTest.php Tests the Layout Builder UI with a context defined at runtime.
LayoutBuilderUiCacheContext class core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php Determines if an entity is being viewed in the Layout Builder UI.
LayoutBuilderUiCacheContext.php file core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php
LayoutBuilderUiCacheContext::getContext function core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php Returns the string representation of the cache context.

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