Search for getContext

  1. Search 7.x for getContext
  2. Search 8.9.x for getContext
  3. Search 10.3.x for getContext
  4. Search 11.x for getContext
  5. Other projects
Title Object type File name Summary
ContextAwarePluginTraitTest::testGetContextValue function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::getContextValue
ContextAwarePluginTraitTest::testGetContextValueFromConfiguration function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::getContextValue
@group legacy
ContextAwareVariantInterface::getContexts function core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Gets the values for all defined contexts.
ContextHandler::getContextDefinitions function core/lib/Drupal/Core/Plugin/Context/ContextHandler.php Returns the context definitions associated with a plugin definition.
ContextInterface::getContextData function core/lib/Drupal/Core/Plugin/Context/ContextInterface.php Gets the context value as typed data object.
ContextInterface::getContextDefinition function core/lib/Drupal/Core/Plugin/Context/ContextInterface.php
ContextInterface::getContextDefinition function core/lib/Drupal/Component/Plugin/Context/ContextInterface.php Gets the provided definition that the context must conform to.
ContextInterface::getContextValue function core/lib/Drupal/Component/Plugin/Context/ContextInterface.php Gets the context value.
ContextTest::providerGetContextValue function core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php Data provider for testGetContextValue.
ContextTest::testGetContextValue function core/tests/Drupal/Tests/Component/Plugin/Context/ContextTest.php @covers ::getContextValue
@dataProvider providerGetContextValue
ContextTypedDataTest::testGetContextValue function core/tests/Drupal/KernelTests/Core/Plugin/ContextTypedDataTest.php Tests that getting a context value does not throw fatal errors.
ContextualLinkManager::getContextualLinkPluginsByGroup function core/lib/Drupal/Core/Menu/ContextualLinkManager.php Gets the contextual link plugins by contextual link group.
ContextualLinkManager::getContextualLinksArrayByGroup function core/lib/Drupal/Core/Menu/ContextualLinkManager.php Gets the contextual links prepared as expected by links.html.twig.
ContextualLinkManagerInterface::getContextualLinkPluginsByGroup function core/lib/Drupal/Core/Menu/ContextualLinkManagerInterface.php Gets the contextual link plugins by contextual link group.
ContextualLinkManagerInterface::getContextualLinksArrayByGroup function core/lib/Drupal/Core/Menu/ContextualLinkManagerInterface.php Gets the contextual links prepared as expected by links.html.twig.
ContextualLinkManagerTest::testGetContextualLinkPluginsByGroup function core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php Tests the getContextualLinkPluginsByGroup method.
ContextualLinkManagerTest::testGetContextualLinkPluginsByGroupWithCache function core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php Tests the getContextualLinkPluginsByGroup method with a prefilled cache.
ContextualLinkManagerTest::testGetContextualLinksArrayByGroup function core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php Tests the getContextualLinksArrayByGroup method.
ContextualLinkManagerTest::testGetContextualLinksArrayByGroupAccessCheck function core/tests/Drupal/Tests/Core/Menu/ContextualLinkManagerTest.php Tests the access checking of the getContextualLinksArrayByGroup method.
CookieCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/CookieCacheContextTest.php Provides a list of cookies and expected cache contexts.
CookieCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/CookieCacheContextTest.php @covers ::getContext
CookiesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php Returns the string representation of the cache context.
DefaultsSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Gets contexts for use during preview.
DefaultsSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContexts
DefaultsSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContextsDuringPreview
Entity::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/Entity.php Returns a context definition for this argument.
EntityTestViewGrantsCacheContext::getContext function core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php Returns the string representation of the cache context.
FooCacheContext::getContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Returns the string representation of the cache context.
HeadersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php Returns the string representation of the cache context.
HeadersCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php Provides a list of headers and expected cache contexts.
HeadersCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/HeadersCacheContextTest.php @covers ::getContext
IpCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php Returns the string representation of the cache context.
IsFrontPathCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php Returns the string representation of the cache context.
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::getContext function core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php Returns the string representation of the cache context.
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:
LayoutBuilderEntityViewDisplay::getContextsForEntity function core/modules/layout_builder/src/Entity/LayoutBuilderEntityViewDisplay.php Gets the available contexts for a given entity.
LayoutBuilderIsActiveCacheContext::getContext function core/modules/layout_builder/src/Cache/LayoutBuilderIsActiveCacheContext.php Returns the string representation of the cache context.
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
LayoutBuilderUiCacheContext::getContext function core/modules/layout_builder/src/Cache/LayoutBuilderUiCacheContext.php Returns the string representation of the cache context.
LinkCollection::getContext function core/modules/jsonapi/src/JsonApiResource/LinkCollection.php Gets the LinkCollection's context object.
MenuActiveTrailsCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/MenuActiveTrailsCacheContext.php Returns the string representation of the cache context.
MetadataBubblingUrlGenerator::getContext function core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php
NodeAccessGrantsCacheContext::getContext function core/modules/node/src/Cache/NodeAccessGrantsCacheContext.php Returns the string representation of the cache context.
NoOptimizeCacheContext::getContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php Returns the string representation of the cache context.
NullGenerator::getContext function core/lib/Drupal/Core/Routing/NullGenerator.php

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