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. Search 11.x for context
  6. 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
UserCacheContext class core/lib/Drupal/Core/Cache/Context/UserCacheContext.php Defines the UserCacheContext service, for "per user" caching.
UserCacheContext.php file core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
UserCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
UserCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
UserCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/UserCacheContext.php
UserCacheContextBase class core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php Base class for user-based cache contexts.
UserCacheContextBase.php file core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php
UserCacheContextBase::$user property core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php The account object.
UserCacheContextBase::__construct function core/lib/Drupal/Core/Cache/Context/UserCacheContextBase.php Constructs a new UserCacheContextBase class.
UserContextAccessPolicy class core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php A test access policy class that sets a context.
UserContextAccessPolicy::applies function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
UserContextAccessPolicy::getPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/AccessPolicyProcessorTest.php
UserResourceTestBase::getExpectedCacheContexts function core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php
UserRole::getCacheContexts function core/modules/user/src/Plugin/Condition/UserRole.php
UserRolesAccessPolicy::getPersistentCacheContexts function core/lib/Drupal/Core/Session/UserRolesAccessPolicy.php
UserRolesAccessPolicyTest::testGetPersistentCacheContexts function core/tests/Drupal/Tests/Core/Session/UserRolesAccessPolicyTest.php Tests the getPersistentCacheContexts method.
UserRolesCacheContext class core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php Defines the UserRolesCacheContext service, for "per role" caching.
UserRolesCacheContext.php file core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
UserRolesCacheContext::getCacheableMetadata function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
UserRolesCacheContext::getContext function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
UserRolesCacheContext::getLabel function core/lib/Drupal/Core/Cache/Context/UserRolesCacheContext.php
UserRolesCacheContextTest class core/tests/Drupal/Tests/Core/Cache/Context/UserRolesCacheContextTest.php Tests Drupal\Core\Cache\Context\UserRolesCacheContext.
UserRolesCacheContextTest.php file core/tests/Drupal/Tests/Core/Cache/Context/UserRolesCacheContextTest.php
UserRolesCacheContextTest::testCalculatedRole function core/tests/Drupal/Tests/Core/Cache/Context/UserRolesCacheContextTest.php Tests calculated role.
UserTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/UserTest.php
UserTranslationUITest::$defaultCacheContexts property core/modules/user/tests/src/Functional/UserTranslationUITest.php
VariationCacheTest::$cacheContextsManager property core/tests/Drupal/Tests/Core/Cache/VariationCacheTest.php The mock cache contexts manager.
ViewExecutable::addCacheContext function core/modules/views/src/ViewExecutable.php Expands the list of used cache contexts for the view.
views.view.contextual_recent.yml file core/modules/contextual/tests/modules/contextual_test/config/optional/views.view.contextual_recent.yml core/modules/contextual/tests/modules/contextual_test/config/optional/views.view.contextual_recent.yml
views.view.test_contextual_links.yml file core/modules/node/tests/modules/node_test_views/test_views/views.view.test_contextual_links.yml core/modules/node/tests/modules/node_test_views/test_views/views.view.test_contextual_links.yml
views.view.test_user_role_contextual_filter.yml file core/modules/views/tests/modules/views_test_config/test_views/views.view.test_user_role_contextual_filter.yml core/modules/views/tests/modules/views_test_config/test_views/views.view.test_user_role_contextual_filter.yml
views.view.test_view_block_with_context.yml file core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block_with_context.yml core/modules/block/tests/modules/block_test_views/test_views/views.view.test_view_block_with_context.yml
ViewsBlockBase::$contextualLinks property core/modules/views/src/Plugin/Block/ViewsBlockBase.php The Views contextual links service.
ViewsBlockBase::addContextualLinks function core/modules/views/src/Plugin/Block/ViewsBlockBase.php Converts Views block content to a renderable array with contextual links.
ViewsBlockBase::getCacheContexts function core/modules/views/src/Plugin/Block/ViewsBlockBase.php
ViewsBlockTest::$contextualLinks property core/modules/views/tests/src/Unit/Plugin/Block/ViewsBlockTest.php The Views contextual links service.
ViewsDisplay::$contextual_links_locations property core/modules/views/src/Annotation/ViewsDisplay.php A list of places where contextual links should be added.
ViewsExposedFilterBlock::getCacheContexts function core/modules/views/src/Plugin/Block/ViewsExposedFilterBlock.php
ViewsTestCacheContext class core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php Test cache context which uses a dynamic context coming from state.
ViewsTestCacheContext.php file core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php
ViewsTestCacheContext::getCacheableMetadata function core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php
ViewsTestCacheContext::getContext function core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php
ViewsTestCacheContext::getLabel function core/modules/views/tests/modules/views_test_data/src/Cache/ViewsTestCacheContext.php
ViewsTestCacheContextFilter class core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php Provides a test filter plugin with a custom cache context.
ViewsTestCacheContextFilter.php file core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php
ViewsTestCacheContextFilter::getCacheContexts function core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php
ViewsTestCacheContextFilter::query function core/modules/views/tests/modules/views_test_data/src/Plugin/views/filter/ViewsTestCacheContextFilter.php
ViewsUiHooks::contextualLinksViewAlter function core/modules/views_ui/src/Hook/ViewsUiHooks.php Implements hook_contextual_links_view_alter().
views_add_contextual_links function core/modules/views/views.module Adds contextual links associated with a view display to a renderable array.
views_ui.contextual.css file core/themes/stable9/css/views_ui/views_ui.contextual.css The .contextual.css file is intended to contain styles that override declarations
in the Contextual module.

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