Search for context

  1. Search 7.x for context
  2. Search 9.5.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
BazCacheContext::getContext function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
BazCacheContext::getLabel function core/tests/Drupal/Tests/Core/Cache/Context/CacheContextsManagerTest.php
block.links.contextual.yml file core/modules/block/block.links.contextual.yml core/modules/block/block.links.contextual.yml
Block::$context property core/lib/Drupal/Core/Block/Annotation/Block.php An array of context definitions describing the context used by the plugin.
Block::$contexts property core/modules/block/src/Entity/Block.php The available contexts for this block and its visibility conditions.
Block::$context_definitions property core/lib/Drupal/Core/Block/Annotation/Block.php An array of context definitions describing the context used by the plugin.
BlockAccessControlHandler::$contextHandler property core/modules/block/src/BlockAccessControlHandler.php The plugin context handler.
BlockAccessControlHandler::$contextRepository property core/modules/block/src/BlockAccessControlHandler.php The context manager service.
BlockContentCacheTagsTest::getAccessCacheContextsForEntity function core/modules/block_content/tests/src/Functional/BlockContentCacheTagsTest.php
BlockContentContextualLinksTest class core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php Tests views contextual links on block content.
BlockContentContextualLinksTest.php file core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php
BlockContentContextualLinksTest::$defaultTheme property core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php
BlockContentContextualLinksTest::$modules property core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php
BlockContentContextualLinksTest::testBlockContentContextualLinks function core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php Tests contextual links.
BlockContentHalJsonAnonTest::getExpectedCacheContexts function core/modules/block_content/tests/src/Functional/Hal/BlockContentHalJsonAnonTest.php
BlockContentResourceTestBase::getExpectedCacheContexts function core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php
BlockContentTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/BlockContentTest.php
BlockContentTranslationUITest::$defaultCacheContexts property core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php
BlockContextMappingUpdateFilledTest class core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateFilledTest.php Runs BlockContextMappingUpdateTest with a dump filled with content.
BlockContextMappingUpdateFilledTest.php file core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateFilledTest.php
BlockContextMappingUpdateFilledTest::setDatabaseDumpFiles function core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateFilledTest.php
BlockContextMappingUpdateTest class core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php Tests the upgrade path for block context mapping renames.
BlockContextMappingUpdateTest.php file core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php
BlockContextMappingUpdateTest::$modules property core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php
BlockContextMappingUpdateTest::setDatabaseDumpFiles function core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php
BlockContextMappingUpdateTest::testUpdateHookN function core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php Tests that block context mapping is updated properly.
BlockForm::$contextRepository property core/modules/block/src/BlockForm.php The context repository service.
BlockFormTest::$contextRepository property core/modules/block/tests/src/Unit/BlockFormTest.php The mocked context repository.
BlockLibraryController::$contextRepository property core/modules/block/src/Controller/BlockLibraryController.php The context repository.
BlockPageVariantTest::$contextHandler property core/modules/block/tests/src/Unit/Plugin/DisplayVariant/BlockPageVariantTest.php The plugin context handler.
BlockRepositoryTest::$contextHandler property core/modules/block/tests/src/Unit/BlockRepositoryTest.php
BlockRepositoryTest::testGetVisibleBlocksPerRegionWithContext function core/modules/block/tests/src/Unit/BlockRepositoryTest.php Tests the retrieval of block entities that are context-aware.
BlockResourceTestBase::getExpectedCacheContexts function core/modules/block/tests/src/Functional/Rest/BlockResourceTestBase.php
BlockTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/BlockTest.php
BlockUiTest::testContextAwareBlocks function core/modules/block/tests/src/Functional/BlockUiTest.php Tests the behavior of context-aware blocks.
BlockUiTest::testContextAwareUnsatisfiedBlocks function core/modules/block/tests/src/Functional/BlockUiTest.php Tests the behavior of unsatisfied context-aware blocks.
block_content.links.contextual.yml file core/modules/block_content/block_content.links.contextual.yml core/modules/block_content/block_content.links.contextual.yml
block_post_update_disable_blocks_with_missing_contexts function core/modules/block/block.post_update.php Disable all blocks with missing context IDs in block_update_8001().
block_test.multiple_static_context service core/modules/block/tests/modules/block_test/block_test.services.yml Drupal\block_test\ContextProvider\MultipleStaticContext
BookNavigationBlock::getCacheContexts function core/modules/book/src/Plugin/Block/BookNavigationBlock.php
BookNavigationCacheContext class core/modules/book/src/Cache/BookNavigationCacheContext.php Defines the book navigation cache context service.
BookNavigationCacheContext.php file core/modules/book/src/Cache/BookNavigationCacheContext.php
BookNavigationCacheContext::$requestStack property core/modules/book/src/Cache/BookNavigationCacheContext.php The request stack.
BookNavigationCacheContext::getCacheableMetadata function core/modules/book/src/Cache/BookNavigationCacheContext.php
BookNavigationCacheContext::getContext function core/modules/book/src/Cache/BookNavigationCacheContext.php
BookNavigationCacheContext::getLabel function core/modules/book/src/Cache/BookNavigationCacheContext.php
BookNavigationCacheContext::__construct function core/modules/book/src/Cache/BookNavigationCacheContext.php Constructs a new BookNavigationCacheContext service.
BookTest::testBookNavigationCacheContext function core/modules/book/tests/src/Functional/BookTest.php Tests the book navigation cache context.
BreadcrumbFrontCacheContextsTest class core/modules/system/tests/src/Functional/Menu/BreadcrumbFrontCacheContextsTest.php Tests breadcrumbs functionality.
BreadcrumbFrontCacheContextsTest.php file core/modules/system/tests/src/Functional/Menu/BreadcrumbFrontCacheContextsTest.php

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