Search for context

  1. Search 7.x for context
  2. Search 9.5.x for context
  3. Search 10.3.x for context
  4. Search 11.x for context
  5. 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
SectionStorageManager::findByContext function core/modules/layout_builder/src/SectionStorage/SectionStorageManager.php
SectionStorageManagerInterface::findByContext function core/modules/layout_builder/src/SectionStorage/SectionStorageManagerInterface.php Finds the section storage to load based on available contexts.
SectionStorageManagerTest::$contextHandler property core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php The context handler.
SectionStorageManagerTest::providerTestFindByContext function core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php Provides test data for ::testFindByContext().
SectionStorageManagerTest::testConstructNoContextHandler function core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php @covers ::__construct[[api-linebreak]]
SectionStorageManagerTest::testFindByContext function core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php @covers ::findByContext[[api-linebreak]]
SectionStorageManagerTest::testFindByContextCacheableSectionStorage function core/modules/layout_builder/tests/src/Unit/SectionStorageManagerTest.php @covers ::findByContext[[api-linebreak]]
Serializer::getCacheContexts function core/modules/rest/src/Plugin/views/style/Serializer.php
SessionCacheContext class core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php Defines the SessionCacheContext service, for "per session" caching.
SessionCacheContext.php file core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
SessionCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
SessionCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/SessionCacheContext.php
SessionCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\SessionCacheContext[[api-linebreak]]
@group Cache
SessionCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php
SessionCacheContextTest::$request property core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php The request.
SessionCacheContextTest::$requestStack property core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php The request stack.
SessionCacheContextTest::$session property core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php The session object.
SessionCacheContextTest::setUp function core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php
SessionCacheContextTest::testContextWithoutSessionInRequest function core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php @covers ::getContext[[api-linebreak]]
SessionCacheContextTest::testDifferentContextForDifferentSession function core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php @covers ::getContext[[api-linebreak]]
SessionCacheContextTest::testSameContextForSameSession function core/tests/Drupal/Tests/Core/Cache/Context/SessionCacheContextTest.php @covers ::getContext[[api-linebreak]]
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 Modules to enable.
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().
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
session_exists_cache_context_test.module file core/modules/system/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.module Test module.
session_exists_cache_context_test_page_top function core/modules/system/tests/modules/session_exists_cache_context_test/session_exists_cache_context_test.module Implements hook_page_top().
settings_tray.links.contextual.yml file core/modules/settings_tray/settings_tray.links.contextual.yml core/modules/settings_tray/settings_tray.links.contextual.yml
settings_tray_contextual_links_view_alter function core/modules/settings_tray/settings_tray.module Implements hook_contextual_links_view_alter().
SevenLayoutBuilderTest::testContextualLinks function core/tests/Drupal/FunctionalTests/Theme/SevenLayoutBuilderTest.php Tests the layout builder has expected contextual links with Seven.
ShortcutHalJsonAnonTest::getExpectedCacheContexts function core/modules/shortcut/tests/src/Functional/Hal/ShortcutHalJsonAnonTest.php
ShortcutTranslationUITest::$defaultCacheContexts property core/modules/shortcut/tests/src/Functional/ShortcutTranslationUITest.php {inheritdoc}
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

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