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. Other projects
Title Object type File name Summary
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.
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
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
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 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 Returns the string representation of the cache context.
SimpleConfigSectionStorage::getContextsDuringPreview function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php Gets contexts for use during preview.
SiteCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php Returns the string representation of the cache context.
StringArgument::getContextDefinition function core/modules/views/src/Plugin/views/argument/StringArgument.php Returns a context definition for this argument.
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 Returns the string representation of the cache context.
TimeZoneCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/TimeZoneCacheContext.php Returns the string representation of the cache context.
UrlCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UrlCacheContext.php Returns the string representation of the cache context.
UrlGenerator::getContext function core/lib/Drupal/Core/Routing/UrlGenerator.php
UserCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UserCacheContext.php Returns the string representation of the cache context.
UserRolesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Returns the string representation of the cache context.
ViewsTestCacheContext::getContext function core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php Returns the string representation of the cache context.
WorkspaceCacheContext::getContext function core/modules/workspaces/src/WorkspaceCacheContext.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.