Search for context

  1. Search 7.x for context
  2. Search 8.9.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
ContextualUnitTest class core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php Tests edge cases for converting between contextual links and IDs.
ContextualUnitTest.php file core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php
ContextualUnitTest::$modules property core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php Modules to enable.
ContextualUnitTest::contextualLinksDataProvider function core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php Provides testcases for both test functions.
ContextualUnitTest::testContextualIdToLinks function core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php Tests the conversion from contextual ID to links.
ContextualUnitTest::testContextualLinksToId function core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php Tests the conversion from contextual links to IDs.
ContextualValidatorInterface interface core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php Extends the contextual validator validate method by a new parameter.
ContextualValidatorInterface.php file core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php
ContextualValidatorInterface::validate function core/lib/Drupal/Core/TypedData/Validation/ContextualValidatorInterface.php Validates a value against a constraint or a list of constraints.
contextual_contextual_links_view_alter function core/modules/contextual/contextual.module Implements hook_contextual_links_view_alter().
contextual_help function core/modules/contextual/contextual.module Implements hook_help().
contextual_page_attachments function core/modules/contextual/contextual.module Implements hook_page_attachments().
contextual_preprocess function core/modules/contextual/contextual.module Implements hook_preprocess().
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.module file core/modules/contextual/tests/modules/contextual_test/contextual_test.module Provides test contextual link on blocks.
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
contextual_test_block_view_alter function core/modules/contextual/tests/modules/contextual_test/contextual_test.module Implements hook_block_view_alter().
contextual_test_contextual_links_view_alter function core/modules/contextual/tests/modules/contextual_test/contextual_test.module Implements hook_contextual_links_view_alter().
contextual_test_page_attachments_alter function core/modules/contextual/tests/modules/contextual_test/contextual_test.module Implements hook_page_attachments_alter().
contextual_toolbar function core/modules/contextual/contextual.module Implements hook_toolbar().
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

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