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
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 Returns the string representation of the cache context.
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 Returns the string representation of the cache context.
RouteNameCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/RouteNameCacheContext.php Returns the string representation of the cache context.
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.
TestDiscoveryCacheContext::getContext function core/modules/simpletest/src/Cache/Context/TestDiscoveryCacheContext.php
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.