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
Title Object type File name Summary
Access::getCacheContexts function core/modules/node/src/Plugin/views/filter/Access.php
ActionResourceTestBase::getExpectedCacheContexts function core/modules/system/tests/src/Functional/Rest/ActionResourceTestBase.php
AdminNegotiator::$adminContext property core/modules/user/src/Theme/AdminNegotiator.php The route admin context to determine whether a route is an admin one.
ArgumentPluginBase::getCacheContexts function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php
ArgumentPluginBase::getContextDefinition function core/modules/views/src/Plugin/views/argument/ArgumentPluginBase.php Returns a context definition for this argument.
ArgumentValidatorPluginBase::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/ArgumentValidatorPluginBase.php Returns a context definition for this argument.
AssertPageCacheContextsAndTagsTrait trait core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Provides test assertions for testing page-level cache contexts & tags.
AssertPageCacheContextsAndTagsTrait.php file core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php
AssertPageCacheContextsAndTagsTrait::assertCacheContext function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts whether an expected cache context was present in the last response.
AssertPageCacheContextsAndTagsTrait::assertCacheContexts function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache contexts are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts the max age header.
AssertPageCacheContextsAndTagsTrait::assertCacheTags function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache tags are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertNoCacheContext function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts that a cache context was not present in the last response.
AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts page cache miss, then hit for the given URL; checks cache headers.
AssertPageCacheContextsAndTagsTrait::enablePageCaching function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Enables page caching.
AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues function core/modules/system/tests/src/Functional/Cache/AssertPageCacheContextsAndTagsTrait.php Gets a specific header value as array.
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.
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.
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
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
BlockContextualLinksTest::$modules property core/modules/block/tests/src/FunctionalJavascript/BlockContextualLinksTest.php
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 The context handler of a mock.
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_test.multiple_static_context service core/modules/block/tests/modules/block_test/block_test.services.yml Drupal\block_test\ContextProvider\MultipleStaticContext

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