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 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
contextual_views_data_alter function core/modules/contextual/contextual.views.inc Implements hook_views_data_alter().
CookieCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/CookieCacheContextTest.php @coversDefaultClass \Drupal\Core\Cache\Context\CookiesCacheContext
@group Cache
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 @covers ::getContext
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 Gets the cacheability metadata for the context based on the parameter value.
CookiesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php Returns the string representation of the cache context.
CookiesCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/CookiesCacheContext.php Returns the label of the cache context.
Current::getCacheContexts function core/modules/user/src/Plugin/views/filter/Current.php The cache contexts associated with this object.
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 Gets all available contexts for the purposes of configuration.
CurrentLanguageContext::getRuntimeContexts function core/lib/Drupal/Core/Language/ContextProvider/CurrentLanguageContext.php Gets runtime context values for the given context IDs.
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 The cache contexts associated with this object.
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 Gets all available contexts for the purposes of configuration.
CurrentUserContext::getRuntimeContexts function core/modules/user/src/ContextProvider/CurrentUserContext.php Gets runtime context values for the given context IDs.
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 @coversDefaultClass \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 Modules to install.
CurrentUserContextTest::setUp function core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php
CurrentUserContextTest::testGetAvailableContexts function core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php @covers ::getAvailableContexts
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 The cache contexts associated with this object.
DefaultPluginManagerTest::testGetCacheContexts function core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php @covers ::getCacheContexts
DefaultsSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Derives the available plugin contexts from route values.
DefaultsSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Gets contexts for use during preview.
DefaultsSectionStorage::setContext function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
DefaultsSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContexts
DefaultsSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContextsDuringPreview
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.
DisplayTest::toggleContextualTriggerVisibility function core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php Toggles the visibility of a contextual trigger.
DocParser::$context property core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
DocParserTest::testSyntaxErrorWithContextDescription function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php @group DDC-78
Drupal\Core\Cache\Context\CacheContextsManager service core/core.services.yml

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