Search for context
- Search 7.x for context
- Search 9.5.x for context
- Search 8.9.x for context
- Search 11.x for context
- Other projects
Exact matches
Title | Object type | File name | Summary |
---|---|---|---|
Context | class | core/ |
A Drupal specific context wrapper class. |
Context | class | core/ |
A generic context class for wrapping data a plugin needs to operate. |
All search results
Title | Object type | File name | Summary |
---|---|---|---|
IsFrontPathCacheContextTest | class | core/ |
@coversDefaultClass \Drupal\Core\Cache\Context\IsFrontPathCacheContext @group Cache |
IsFrontPathCacheContextTest.php | file | core/ |
|
IsFrontPathCacheContextTest::createPathMatcher | function | core/ |
Creates a PathMatcherInterface prophecy. |
IsFrontPathCacheContextTest::testGetContextFront | function | core/ |
@covers ::getContext |
IsFrontPathCacheContextTest::testGetContextNotFront | function | core/ |
@covers ::getContext |
IsSuperUserCacheContext | class | core/ |
Defines the IsSuperUserCacheContext service, for "super user or not" caching. |
IsSuperUserCacheContext.php | file | core/ |
|
IsSuperUserCacheContext::getCacheableMetadata | function | core/ |
Gets the cacheability metadata for the context. |
IsSuperUserCacheContext::getContext | function | core/ |
Returns the string representation of the cache context. |
IsSuperUserCacheContext::getLabel | function | core/ |
Returns the label of the cache context. |
language.current_language_context | service | core/ |
Drupal\Core\Language\ContextProvider\CurrentLanguageContext |
LanguageNegotiationUserAdmin::$adminContext | property | core/ |
The admin context. |
LanguagesCacheContext | class | core/ |
Defines the LanguagesCacheContext service, for "per language" caching. |
LanguagesCacheContext.php | file | core/ |
|
LanguagesCacheContext::$languageManager | property | core/ |
The language manager. |
LanguagesCacheContext::getCacheableMetadata | function | core/ |
Gets the cacheability metadata for the context based on the parameter value. |
LanguagesCacheContext::getContext | function | core/ |
$type can be NULL, or one of the language types supported by the language manager, typically: |
LanguagesCacheContext::getLabel | function | core/ |
Returns the label of the cache context. |
LanguagesCacheContext::__construct | function | core/ |
Constructs a new LanguagesCacheContext service. |
LayoutBuilderBlocksTest::testPluginsProvidingCustomAttributesAndContextualLinks | function | core/ |
Tests that block plugins can define custom attributes and contextual links. |
LayoutBuilderContextTrait | trait | core/ |
Provides a wrapper around getting contexts from a section storage object. |
LayoutBuilderContextTrait.php | file | core/ |
|
LayoutBuilderContextTrait::$contextRepository | property | core/ |
The context repository. |
LayoutBuilderContextTrait::contextRepository | function | core/ |
Gets the context repository service. |
LayoutBuilderContextTrait::getPopulatedContexts | function | core/ |
Returns all populated contexts, both global and section-storage-specific. |
LayoutBuilderDisableInteractionsTest::assertContextualLinkRetainsMouseup | function | core/ |
Makes sure contextual links respond to mouseup event. |
LayoutBuilderDisableInteractionsTest::assertContextualLinksClickable | function | core/ |
Confirms that Layout Builder contextual links remain active. |
LayoutBuilderEntityViewDisplay::contextRepository | function | core/ |
Wraps the context repository service. |
LayoutBuilderEntityViewDisplay::getContextsForEntity | function | core/ |
Gets the available contexts for a given entity. |
LayoutBuilderIsActiveCacheContext | class | core/ |
Determines whether Layout Builder is active for a given entity type or not. |
LayoutBuilderIsActiveCacheContext.php | file | core/ |
|
LayoutBuilderIsActiveCacheContext::$routeMatch | property | core/ |
The current route match. |
LayoutBuilderIsActiveCacheContext::getCacheableMetadata | function | core/ |
Gets the cacheability metadata for the context based on the parameter value. |
LayoutBuilderIsActiveCacheContext::getContext | function | core/ |
Returns the string representation of the cache context. |
LayoutBuilderIsActiveCacheContext::getDisplay | function | core/ |
Returns the entity view display for a given entity type and view mode. |
LayoutBuilderIsActiveCacheContext::getLabel | function | core/ |
Returns the label of the cache context. |
LayoutBuilderIsActiveCacheContext::__construct | function | core/ |
LayoutBuilderCacheContext constructor. |
LayoutBuilderIsActiveCacheContextTest | class | core/ |
@coversDefaultClass \Drupal\layout_builder\Cache\LayoutBuilderIsActiveCacheContext |
LayoutBuilderIsActiveCacheContextTest.php | file | core/ |
|
LayoutBuilderIsActiveCacheContextTest::providerTestGetContext | function | core/ |
Provides test data for ::testGetContext(). |
LayoutBuilderIsActiveCacheContextTest::testGetContext | function | core/ |
@covers ::getContext @covers ::getDisplay |
LayoutBuilderIsActiveCacheContextTest::testGetContextMissingEntityTypeId | function | core/ |
@covers ::getContext |
LayoutBuilderIsActiveCacheContextTest::testGetContextNonFieldableEntity | function | core/ |
@covers ::getContext @covers ::getDisplay |
LayoutBuilderSectionStorageTest::testRenderByContextAwarePluginDelegate | function | core/ |
Tests that section loading is delegated to plugins during rendering. |
LayoutBuilderTest::clickContextualLink | function | core/ |
@todo Remove this in https://www.drupal.org/project/drupal/issues/2918718. |
LayoutBuilderTest::testContextAwareLayouts | function | core/ |
Tests that layouts can be context-aware. |
LayoutBuilderTest::testLayoutBuilderContexts | function | core/ |
Tests the Layout Builder UI with a context defined at runtime. |
LayoutBuilderUiCacheContext | class | core/ |
Determines if an entity is being viewed in the Layout Builder UI. |
LayoutBuilderUiCacheContext.php | file | core/ |
|
LayoutBuilderUiCacheContext::getContext | function | core/ |
Returns the string representation of the cache context. |
Pagination
- Previous page
- Page 21
- Next page
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.