Search for getContext

  1. Search 7.x for getContext
  2. Search 9.5.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
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.
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.
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
NumericArgument::getContextDefinition function core/modules/views/src/Plugin/views/argument/NumericArgument.php Returns a context definition for this argument.
NumericArgumentValidator::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php Returns a context definition for this argument.
OverridesSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/OverridesSectionStorage.php Gets contexts for use during preview.
OverridesSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php @covers ::getContexts
OverridesSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php @covers ::getContextsDuringPreview
PageDisplayVariantSelectionEvent::getContexts function core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php Gets the contexts that were set during event dispatch.
PagersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php
PathCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/PathCacheContext.php Returns the string representation of the cache context.
PathParentCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/PathParentCacheContext.php Returns the string representation of the cache context.
PathParentCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php Provides a list of paths and expected cache contexts.
PathParentCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php @covers ::getContext
PirateDayCacheContext::getContext function core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php Returns the string representation of the cache context.
PoItem::getContext function core/lib/Drupal/Component/Gettext/PoItem.php Gets the context this translation belongs to.
ProtocolVersionCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/ProtocolVersionCacheContext.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.