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
NumericArgument::getContextDefinition function core/modules/views/src/Plugin/views/argument/NumericArgument.php
NumericArgumentValidator::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/NumericArgumentValidator.php
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[[api-linebreak]]
OverridesSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/OverridesSectionStorageTest.php @covers ::getContextsDuringPreview[[api-linebreak]]
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
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[[api-linebreak]]
PirateDayCacheContext::getContext function core/modules/config/tests/config_override_test/src/Cache/PirateDayCacheContext.php
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
ProtocolVersionCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/ProtocolVersionCacheContextTest.php Provides a list of query arguments and expected cache contexts.
ProtocolVersionCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/ProtocolVersionCacheContextTest.php @covers ::getContext[[api-linebreak]]
QueryArgsCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/QueryArgsCacheContext.php
QueryArgsCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/QueryArgsCacheContextTest.php Provides a list of query arguments and expected cache contexts.
QueryArgsCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/QueryArgsCacheContextTest.php @covers ::getContext[[api-linebreak]]
Relationship::getContext function core/modules/jsonapi/src/JsonApiResource/Relationship.php Gets context resource object of the relationship.
RequestFormatCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/RequestFormatCacheContext.php
RouteCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/RouteCacheContext.php
RouteNameCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php
SectionComponentBuildRenderArrayEvent::getContexts function core/modules/layout_builder/src/Event/SectionComponentBuildRenderArrayEvent.php Get the available contexts.
SectionStorageBase::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/SectionStorageBase.php Gets contexts for use during preview.
SectionStorageInterface::getContextsDuringPreview function core/modules/layout_builder/src/SectionStorageInterface.php Gets contexts for use during preview.
SessionCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
SessionExistsCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php
SimpleConfigSectionStorage::getContextsDuringPreview function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
SiteCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
StringArgument::getContextDefinition function core/modules/views/src/Plugin/views/argument/StringArgument.php
SupernovaGenerator::getContext function core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php
TableSort::getContextFromRequest function core/lib/Drupal/Core/Utility/TableSort.php Initializes the table sort context.
TestDisplayVariant::getContexts function core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php Gets the contexts.
ThemeCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php
TimeZoneCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php
UrlCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php
UrlGenerator::getContext function core/lib/Drupal/Core/Routing/UrlGenerator.php
UserCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
UserRolesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
ViewsTestCacheContext::getContext function core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php
WorkspaceCacheContext::getContext function core/modules/workspaces/src/WorkspaceCacheContext.php

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