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
block.links.contextual.yml file core/modules/block/block.links.contextual.yml core/modules/block/block.links.contextual.yml
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 The theme to install as the default for testing.
BlockContentContextualLinksTest::$modules property core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php Modules to install.
BlockContentContextualLinksTest::testBlockContentContextualLinks function core/modules/block_content/tests/src/Functional/BlockContentContextualLinksTest.php Tests contextual links.
BlockContentResourceTestBase::getExpectedCacheContexts function core/modules/block_content/tests/src/Functional/Rest/BlockContentResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
BlockContentTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/BlockContentTest.php The expected cache contexts for the GET/HEAD response of the test entity.
BlockContentTranslationUITest::$defaultCacheContexts property core/modules/block_content/tests/src/Functional/BlockContentTranslationUITest.php Default cache contexts expected on a non-translated entity.
BlockContextualLinksTest class core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php Tests the contextual links added while rendering the block.
BlockContextualLinksTest.php file core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php
BlockContextualLinksTest::$blockId property core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php Block id of the block.
BlockContextualLinksTest::$defaultTheme property core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php The theme to install as the default for testing.
BlockContextualLinksTest::$modules property core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php Modules to install.
BlockContextualLinksTest::setUp function core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php
BlockContextualLinksTest::testBlockContextualRemoveLinks function core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php Test that remove/configure contextual links are present in the block.
BlockForm::$contextRepository property core/modules/block/src/BlockForm.php The context repository service.
BlockFormTest::$contextHandler property core/modules/block/tests/src/Unit/BlockFormTest.php The mocked context handler.
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.
BlockRepository::$contextHandler property core/modules/block/src/BlockRepository.php The 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 The expected cache contexts for the GET/HEAD response of the test entity.
BlockTest::getExpectedCacheContexts function core/modules/jsonapi/tests/src/Functional/BlockTest.php The expected cache contexts for the GET/HEAD response of the test entity.
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_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::$routeMatch property core/modules/book/src/Cache/BookNavigationCacheContext.php The current route match.
BookNavigationCacheContext::getCacheableMetadata function core/modules/book/src/Cache/BookNavigationCacheContext.php Gets the cacheability metadata for the context.
BookNavigationCacheContext::getContext function core/modules/book/src/Cache/BookNavigationCacheContext.php Returns the string representation of the cache context.
BookNavigationCacheContext::getLabel function core/modules/book/src/Cache/BookNavigationCacheContext.php Returns the label of the cache context.
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
BreadcrumbFrontCacheContextsTest::$defaultTheme property core/modules/system/tests/src/Functional/Menu/BreadcrumbFrontCacheContextsTest.php The theme to install as the default for testing.
BreadcrumbFrontCacheContextsTest::$modules property core/modules/system/tests/src/Functional/Menu/BreadcrumbFrontCacheContextsTest.php Modules to install.
BreadcrumbFrontCacheContextsTest::$nodeWithAlias property core/modules/system/tests/src/Functional/Menu/BreadcrumbFrontCacheContextsTest.php A test node with path alias.
BreadcrumbFrontCacheContextsTest::setUp function 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.