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
ContextualLinksTest::testContextualLinksDestinationWithQuery function core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php Tests the contextual links destination with query.
ContextualLinksTest::testContextualLinksOutsideLayout function core/modules/layout_builder/tests/src/FunctionalJavascript/ContextualLinksTest.php Tests that contextual links outside the layout are removed.
ContextualLinksTest::testContextualLinksVisibility function core/modules/contextual/tests/src/FunctionalJavascript/ContextualLinksTest.php Tests the visibility of contextual links.
ContextualLinksTest::testRevisionContextualLinks function core/modules/node/tests/src/FunctionalJavascript/ContextualLinksTest.php Tests the contextual links on revisions.
ContextualTestHooks class core/modules/contextual/tests/modules/contextual_test/src/Hook/ContextualTestHooks.php Hook implementations for contextual_test.
ContextualTestHooks.php file core/modules/contextual/tests/modules/contextual_test/src/Hook/ContextualTestHooks.php
ContextualTestHooks::blockViewAlter function core/modules/contextual/tests/modules/contextual_test/src/Hook/ContextualTestHooks.php Implements hook_block_view_alter().
ContextualTestHooks::contextualLinksViewAlter function core/modules/contextual/tests/modules/contextual_test/src/Hook/ContextualTestHooks.php Implements hook_contextual_links_view_alter().
ContextualTestHooks::pageAttachmentsAlter function core/modules/contextual/tests/modules/contextual_test/src/Hook/ContextualTestHooks.php Implements hook_page_attachments_alter().
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 install.
ContextualUnitTest::contextualLinksDataProvider function core/modules/contextual/tests/src/Kernel/ContextualUnitTest.php Provides test cases 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.
ContextualViewsHooks class core/modules/contextual/src/Hook/ContextualViewsHooks.php Hook implementations for contextual.
ContextualViewsHooks.php file core/modules/contextual/src/Hook/ContextualViewsHooks.php
ContextualViewsHooks::viewsDataAlter function core/modules/contextual/src/Hook/ContextualViewsHooks.php Implements hook_views_data_alter().
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
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_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.

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