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. 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
contextual_removed_post_updates function core/modules/contextual/contextual.post_update.php Implements hook_removed_post_updates().
contextual_test.info.yml file core/modules/contextual/tests/modules/contextual_test/contextual_test.info.yml core/modules/contextual/tests/modules/contextual_test/contextual_test.info.yml
contextual_test.links.contextual.yml file core/modules/contextual/tests/modules/contextual_test/contextual_test.links.contextual.yml core/modules/contextual/tests/modules/contextual_test/contextual_test.links.contextual.yml
contextual_test.routing.yml file core/modules/contextual/tests/modules/contextual_test/contextual_test.routing.yml core/modules/contextual/tests/modules/contextual_test/contextual_test.routing.yml
CookieCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/CookieCacheContextTest.php Tests Drupal\Core\Cache\Context\CookiesCacheContext.
CookieCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/CookieCacheContextTest.php
CookieCacheContextTest::providerTestGetContext function core/tests/Drupal/Tests/Core/Cache/Context/CookieCacheContextTest.php Provides a list of cookies and expected cache contexts.
CookieCacheContextTest::testGetContext function core/tests/Drupal/Tests/Core/Cache/Context/CookieCacheContextTest.php Tests get context.
CookiesCacheContext class core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php Defines the CookiesCacheContext service, for "per cookie" caching.
CookiesCacheContext.php file core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
CookiesCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
CookiesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
CookiesCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php
Current::getCacheContexts function core/modules/user/src/Plugin/views/filter/Current.php
CurrentLanguageContext class core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php Sets the current language as a context.
CurrentLanguageContext.php file core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php
CurrentLanguageContext::$languageManager property core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php The language manager.
CurrentLanguageContext::getAvailableContexts function core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php
CurrentLanguageContext::getRuntimeContexts function core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php
CurrentLanguageContext::__construct function core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php Constructs a new CurrentLanguageContext.
CurrentThemeCondition::getCacheContexts function core/modules/system/src/Plugin/Condition/CurrentThemeCondition.php
CurrentUser::getCacheContexts function core/modules/user/src/Plugin/views/argument_default/CurrentUser.php
CurrentUserContext class core/modules/user/src/ContextProvider/CurrentUserContext.php Sets the current user as a context.
CurrentUserContext.php file core/modules/user/src/ContextProvider/CurrentUserContext.php
CurrentUserContext::$account property core/modules/user/src/ContextProvider/CurrentUserContext.php The current user.
CurrentUserContext::$userStorage property core/modules/user/src/ContextProvider/CurrentUserContext.php The user storage.
CurrentUserContext::getAvailableContexts function core/modules/user/src/ContextProvider/CurrentUserContext.php
CurrentUserContext::getRuntimeContexts function core/modules/user/src/ContextProvider/CurrentUserContext.php
CurrentUserContext::__construct function core/modules/user/src/ContextProvider/CurrentUserContext.php Constructs a new CurrentUserContext.
CurrentUserContextTest class core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php Tests Drupal\user\ContextProvider\CurrentUserContext.
CurrentUserContextTest.php file core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php
CurrentUserContextTest::$modules property core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php
CurrentUserContextTest::setUp function core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php
CurrentUserContextTest::testGetAvailableContexts function core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php Tests get available contexts.
Date::getCacheContexts function core/modules/views/src/Plugin/views/argument_default/Date.php
DefaultMenuLinkTreeManipulatorsTest::$cacheContextManager property core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php Mock cache context manager.
DefaultPluginManager::getCacheContexts function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php
DefaultPluginManagerTest::testGetCacheContexts function core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php Tests get cache contexts.
DefaultsSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
DefaultsSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
DefaultsSectionStorage::setContext function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
DefaultsSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php Tests get contexts.
DefaultsSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php Tests get contexts during preview.
DiffFormatter::$leading_context_lines property core/lib/Drupal/Component/Diff/DiffFormatter.php Number of leading context "lines" to preserve.
DiffFormatter::$trailing_context_lines property core/lib/Drupal/Component/Diff/DiffFormatter.php Number of trailing context "lines" to preserve.
DiffFormatter::contextLine function core/lib/Drupal/Core/Diff/DiffFormatter.php Creates a context line.
DiffFormatter::_context function core/lib/Drupal/Core/Diff/DiffFormatter.php
DiffFormatter::_context function core/lib/Drupal/Component/Diff/DiffFormatter.php
DisplayBlockTest::testBlockContextualLinks function core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php Tests the contextual links on a Views block.
DisplayTest::testPageContextualLinks function core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php Tests contextual links on Views page displays.

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