Search for getContext

  1. Search 7.x for getContext
  2. Search 9.5.x for getContext
  3. Search 8.9.x for getContext
  4. Search 10.3.x for getContext
  5. Search 11.x for getContext
  6. Other projects
Title Object type File name Summary
PathParentCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/PathParentCacheContextTest.php Tests get context.
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 Tests get context.
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 Tests get context.
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
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.