Search for context

  1. Search 7.x for context
  2. Search 9.5.x for context
  3. Search 8.9.x for context
  4. Search 10.3.x for context
  5. Search 11.x for context
  6. Other projects

Exact matches

These are exact matches according to your search
Title Object type File name Summary
Context class core/lib/Drupal/Core/Plugin/Context/Context.php A Drupal specific context wrapper class.
Context class core/lib/Drupal/Component/Plugin/Context/Context.php A generic context class for wrapping data a plugin needs to operate.

All search results

Title Object type File name Summary
SessionCacheContextTest::testSameContextForSameSession function core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php Tests same context for same session.
SessionExistsCacheContext class core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php Defines the SessionExistsCacheContext service, for "session or not" caching.
SessionExistsCacheContext.php file core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php
SessionExistsCacheContext::$requestStack property core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php The request stack.
SessionExistsCacheContext::$sessionConfiguration property core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php The session configuration.
SessionExistsCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php
SessionExistsCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php
SessionExistsCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php
SessionExistsCacheContext::__construct function core/lib/Drupal/Core/Cache/Context/SessionExistsCacheContext.php Constructs a new SessionExistsCacheContext class.
SessionExistsCacheContextTest class core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php Tests the 'session.exists' cache context service.
SessionExistsCacheContextTest.php file core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php
SessionExistsCacheContextTest::$defaultTheme property core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php
SessionExistsCacheContextTest::$modules property core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php
SessionExistsCacheContextTest::assertSessionCookieOnClient function core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php Asserts whether a session cookie is present on the client or not.
SessionExistsCacheContextTest::testCacheContext function core/modules/system/tests/src/Functional/Cache/SessionExistsCacheContextTest.php Tests \Drupal\Core\Cache\Context\SessionExistsCacheContext::getContext().
SessionExistsCacheContextTestHooks class core/modules/system/tests/modules/session_exists_cache_context_test/src/Hook/SessionExistsCacheContextTestHooks.php Hook implementations for session_exists_cache_context_test.
SessionExistsCacheContextTestHooks.php file core/modules/system/tests/modules/session_exists_cache_context_test/src/Hook/SessionExistsCacheContextTestHooks.php
SessionExistsCacheContextTestHooks::pageTop function core/modules/system/tests/modules/session_exists_cache_context_test/src/Hook/SessionExistsCacheContextTestHooks.php Implements hook_page_top().
session_exists_cache_context_test.info.yml file core/modules/system/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.info.yml core/modules/system/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.info.yml
SettingsTrayHooks::contextualLinksViewAlter function core/modules/settings_tray/src/Hook/SettingsTrayHooks.php Implements hook_contextual_links_view_alter().
settings_tray.links.contextual.yml file core/modules/settings_tray/settings_tray.links.contextual.yml core/modules/settings_tray/settings_tray.links.contextual.yml
ShortcutTranslationUITest::$defaultCacheContexts property core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php
SimpleConfigSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
SimpleConfigSectionStorage::getContextsDuringPreview function core/modules/layout_builder/tests/modules/layout_builder_test/src/Plugin/SectionStorage/SimpleConfigSectionStorage.php
SiteCacheContext class core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php Defines the SiteCacheContext service, for "per site" caching.
SiteCacheContext.php file core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
SiteCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
SiteCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
SiteCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/SiteCacheContext.php
SiteInformationForm::$requestContext property core/modules/system/src/Form/SiteInformationForm.php The request context.
SortPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/sort/SortPluginBase.php
SqlBase::getCacheContexts function core/modules/views/src/Plugin/views/pager/SqlBase.php
Status::getCacheContexts function core/modules/media/src/Plugin/views/filter/Status.php
Status::getCacheContexts function core/modules/node/src/Plugin/views/filter/Status.php
StringArgument::getContextDefinition function core/modules/views/src/Plugin/views/argument/StringArgument.php
StringBase::$context property core/modules/locale/src/StringBase.php The string context.
StringLoader::getSourceContext function core/lib/Drupal/Core/Template/Loader/StringLoader.php
SupernovaGenerator::getContext function core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php
SupernovaGenerator::setContext function core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php
SuperUserAccessPolicy::getPersistentCacheContexts function core/lib/Drupal/Core/Session/SuperUserAccessPolicy.php
SuperUserAccessPolicyTest::testGetPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/SuperUserAccessPolicyTest.php Tests the getPersistentCacheContexts method.
SystemMenuBlock::getCacheContexts function core/modules/system/src/Plugin/Block/SystemMenuBlock.php
Table::getCacheContexts function core/modules/views/src/Plugin/views/style/Table.php
TableSort::getContextFromRequest function core/lib/Drupal/Core/Utility/TableSort.php Initializes the table sort context.
taxonomy.links.contextual.yml file core/modules/taxonomy/taxonomy.links.contextual.yml core/modules/taxonomy/taxonomy.links.contextual.yml
taxonomy_term.taxonomy_term_route_context service core/modules/taxonomy/taxonomy.services.yml Drupal\taxonomy\ContextProvider\TermRouteContext
TermContextTest class core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php Tests Drupal\taxonomy\ContextProvider\TermRouteContext.
TermContextTest.php file core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php
TermContextTest::$modules property core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php
TermContextTest::setUp function core/modules/taxonomy/tests/src/Kernel/ContextProvider/TermContextTest.php

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