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[[api-linebreak]]
ContextAwarePluginTraitTest::testGetContextValueFromConfiguration function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::getContextValue[[api-linebreak]]
@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[[api-linebreak]]
@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
ContextualLinkManager::getContextualLinksArrayByGroup function core/lib/Drupal/Core/Menu/ContextualLinkManager.php
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[[api-linebreak]]
CookiesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
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[[api-linebreak]]
DefaultsSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContextsDuringPreview[[api-linebreak]]
Entity::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/Entity.php
EntityTestViewGrantsCacheContext::getContext function core/modules/system/tests/modules/entity_test/src/Cache/EntityTestViewGrantsCacheContext.php
FooCacheContext::getContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
HeadersCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/HeadersCacheContext.php
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[[api-linebreak]]
IpCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IpCacheContext.php
IsFrontPathCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IsFrontPathCacheContext.php
IsFrontPathCacheContextTest::testGetContextFront function core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php @covers ::getContext[[api-linebreak]]
IsFrontPathCacheContextTest::testGetContextNotFront function core/tests/Drupal/Tests/Core/Cache/Context/IsFrontPathCacheContextTest.php @covers ::getContext[[api-linebreak]]
IsSuperUserCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/IsSuperUserCacheContext.php
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[[api-linebreak]]
@covers ::getDisplay[[api-linebreak]]
LayoutBuilderIsActiveCacheContextTest::testGetContextMissingEntityTypeId function core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php @covers ::getContext[[api-linebreak]]
LayoutBuilderIsActiveCacheContextTest::testGetContextNonFieldableEntity function core/modules/layout_builder/tests/src/Unit/LayoutBuilderIsActiveCacheContextTest.php @covers ::getContext[[api-linebreak]]
@covers ::getDisplay[[api-linebreak]]
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
MetadataBubblingUrlGenerator::getContext function core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php
NodeAccessGrantsCacheContext::getContext function core/modules/node/src/Cache/NodeAccessGrantsCacheContext.php
NoOptimizeCacheContext::getContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
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.