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
Title Object type File name Summary
AssertPageCacheContextsAndTagsTrait trait core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Provides test assertions for testing page-level cache contexts & tags.
AssertPageCacheContextsAndTagsTrait.php file core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php
AssertPageCacheContextsAndTagsTrait::assertCacheContext function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts whether an expected cache context was present in the last response.
AssertPageCacheContextsAndTagsTrait::assertCacheContexts function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache contexts are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertCacheMaxAge function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts the max age header.
AssertPageCacheContextsAndTagsTrait::assertCacheTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Ensures that some cache tags are present in the current response.
AssertPageCacheContextsAndTagsTrait::assertNoCacheContext function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts that a cache context was not present in the last response.
AssertPageCacheContextsAndTagsTrait::assertPageCacheContextsAndTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Asserts page cache miss, then hit for the given URL; checks cache headers.
AssertPageCacheContextsAndTagsTrait::debugCacheTags function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Provides debug information for cache tags.
AssertPageCacheContextsAndTagsTrait::enablePageCaching function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Enables page caching.
AssertPageCacheContextsAndTagsTrait::getCacheHeaderValues function core/modules/system/src/Tests/Cache/AssertPageCacheContextsAndTagsTrait.php Gets a specific header value as array.
BlockContentHalJsonAnonTest::getExpectedCacheContexts function core/modules/block_content/tests/src/Functional/Hal/BlockContentHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
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 Set database dump files to be used.
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 Modules to enable after the database is loaded.
BlockContextMappingUpdateTest::setDatabaseDumpFiles function core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php Set database dump files to be used.
BlockContextMappingUpdateTest::testUpdateHookN function core/modules/block/tests/src/Functional/Update/BlockContextMappingUpdateTest.php Tests that block context mapping is updated properly.
cache_context.test_discovery service core/modules/simpletest/simpletest.services.yml Drupal\simpletest\Cache\Context\TestDiscoveryCacheContext
CKEditorIntegrationTest::assertContextMenuItemExists function core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php Asserts that a context menu item exists by aria-label attribute.
CKEditorIntegrationTest::assertContextMenuItemNotExists function core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php Asserts that a context menu item does not exist by aria-label attribute.
CKEditorIntegrationTest::closeContextMenu function core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php Closes the open context menu.
CKEditorIntegrationTest::openContextMenu function core/modules/media/tests/src/FunctionalJavascript/CKEditorIntegrationTest.php Opens the context menu for the currently selected widget.
ContentTranslationUITestBase::$defaultCacheContexts property core/modules/content_translation/src/Tests/ContentTranslationUITestBase.php Default cache contexts expected on a non-translated entity.
drupal-8.block-context-manager-2354889.php file core/modules/system/tests/fixtures/update/drupal-8.block-context-manager-2354889.php Contains database additions to drupal-8.bare.standard.php.gz for testing the
upgrade path of https://www.drupal.org/node/2354889.
EntityCacheTagsTestBase::getAccessCacheContextsForEntity function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the access cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntity function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the additional (non-standard) cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing function core/modules/system/src/Tests/Entity/EntityCacheTagsTestBase.php Returns the additional cache tags for the tested entity's listing by type.
EntityContextDefinitionDeprecationTest class core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test deprecated use of ContextDefinition as an EntityContextDefinition.
EntityContextDefinitionDeprecationTest.php file core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php
EntityContextDefinitionDeprecationTest::$compatibilityLayer property core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php The compatibility layer property on the context definition under test.
EntityContextDefinitionDeprecationTest::$definition property core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php The context definition under test.
EntityContextDefinitionDeprecationTest::setUp function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php
EntityContextDefinitionDeprecationTest::testAddConstraint function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that addConstraint() proxies to the compatibility layer.
EntityContextDefinitionDeprecationTest::testGetConstraint function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that getConstraint() proxies to the compatibility layer.
EntityContextDefinitionDeprecationTest::testGetConstraintObjects function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that getConstraintObjects() adds the EntityType constraint.
EntityContextDefinitionDeprecationTest::testGetConstraints function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that getConstraints() proxies to the compatibility layer.
EntityContextDefinitionDeprecationTest::testIsSatisfiedBy function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that isSatisfiedBy() calls the compatibility layer.
EntityContextDefinitionDeprecationTest::testSerialization function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that the BC layer survives serialization and unserialization.
EntityContextDefinitionDeprecationTest::testSetConstraints function core/tests/Drupal/Tests/Core/Plugin/Context/EntityContextDefinitionDeprecationTest.php Test that setConstraints() proxies to the compatibility layer.
EntityManager::getTranslationFromContext function core/lib/Drupal/Core/Entity/EntityManager.php
EntityManagerTest::testGetTranslationFromContext function core/tests/Drupal/Tests/Core/Entity/EntityManagerTest.php Tests the getTranslationFromContext() method.
EntityTestHalJsonInternalPropertyNormalizerTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestHalJsonInternalPropertyNormalizerTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestLabelHalJsonAnonTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestLabelHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityTestMapFieldHalJsonAnonTest::getExpectedCacheContexts function core/modules/system/tests/modules/entity_test/tests/src/Functional/Hal/EntityTestMapFieldHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
EntityWithUriCacheTagsTestBase::getDefaultCacheContexts function core/modules/system/src/Tests/Entity/EntityWithUriCacheTagsTestBase.php Gets the default cache contexts for rendered entities.
FileHalJsonAnonTest::getExpectedCacheContexts function core/modules/file/tests/src/Functional/Hal/FileHalJsonAnonTest.php The expected cache contexts for the GET/HEAD response of the test entity.
ItemHalJsonTestBase::getExpectedCacheContexts function core/modules/aggregator/tests/src/Functional/Hal/ItemHalJsonTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.

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