Search for context

  1. Search 7.x for context
  2. Search 8.9.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
CurrentUserContextTest::$modules property core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php Modules to enable.
CurrentUserContextTest::setUp function core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php
CurrentUserContextTest::testGetAvailableContexts function core/modules/user/tests/src/Kernel/ContextProvider/CurrentUserContextTest.php @covers ::getAvailableContexts
DefaultMenuLinkTreeManipulatorsTest::$cacheContextManager property core/tests/Drupal/Tests/Core/Menu/DefaultMenuLinkTreeManipulatorsTest.php Mock cache context manager.
DefaultPluginManager::getCacheContexts function core/lib/Drupal/Core/Plugin/DefaultPluginManager.php The cache contexts associated with this object.
DefaultPluginManagerTest::testGetCacheContexts function core/tests/Drupal/Tests/Core/Plugin/DefaultPluginManagerTest.php @covers ::getCacheContexts
DefaultsSectionStorage::deriveContextsFromRoute function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Derives the available plugin contexts from route values.
DefaultsSectionStorage::getContextsDuringPreview function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Gets contexts for use during preview.
DefaultsSectionStorage::setContext function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php Set a context on this plugin.
DefaultsSectionStorageTest::testGetContexts function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContexts
DefaultsSectionStorageTest::testGetContextsDuringPreview function core/modules/layout_builder/tests/src/Kernel/DefaultsSectionStorageTest.php @covers ::getContextsDuringPreview
DiffFormatter::$leading_context_lines property core/lib/Drupal/Component/Diff/DiffFormatter.php Number of leading context "lines" to preserve.
DiffFormatter::$trailing_context_lines property core/lib/Drupal/Component/Diff/DiffFormatter.php Number of trailing context "lines" to preserve.
DiffFormatter::contextLine function core/lib/Drupal/Core/Diff/DiffFormatter.php Creates a context line.
DiffFormatter::_context function core/lib/Drupal/Core/Diff/DiffFormatter.php
DiffFormatter::_context function core/lib/Drupal/Component/Diff/DiffFormatter.php
DisplayBlockTest::testBlockContextualLinks function core/modules/block/tests/src/Functional/Views/DisplayBlockTest.php Tests the contextual links on a Views block.
DisplayTest::testPageContextualLinks function core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php Tests contextual links on Views page displays.
DisplayTest::toggleContextualTriggerVisibility function core/modules/views_ui/tests/src/FunctionalJavascript/DisplayTest.php Toggles the visibility of a contextual trigger.
DocParser::$context property core/lib/Drupal/Component/Annotation/Doctrine/DocParser.php
DocParserTest::testSyntaxErrorWithContextDescription function core/tests/Drupal/Tests/Component/Annotation/Doctrine/DocParserTest.php @group DDC-78
DuplicateContextualLinksTest class core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php Tests the UI for correct contextual links.
DuplicateContextualLinksTest.php file core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php
DuplicateContextualLinksTest::$defaultTheme property core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php The theme to install as the default for testing.
DuplicateContextualLinksTest::$modules property core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php Modules to enable.
DuplicateContextualLinksTest::testSameContextualLinks function core/modules/contextual/tests/src/FunctionalJavascript/DuplicateContextualLinksTest.php Tests the contextual links with same id.
DynamicMenuLinkMock::getCacheContexts function core/tests/Drupal/Tests/Core/Menu/DynamicMenuLinkMock.php The cache contexts associated with this object.
DynamicPageCacheTestController::htmlUncacheableContexts function core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php A route returning a render array (with 'user' context, so uncacheable)
DynamicPageCacheTestController::htmlWithCacheContexts function core/modules/dynamic_page_cache/tests/dynamic_page_cache_test/src/DynamicPageCacheTestController.php A route returning a render array (with cache contexts, so cacheable).
EarlyRenderingControllerWrapperSubscriber::wrapControllerExecutionInRenderContext function core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php Wraps a controller execution in a render context.
EditorResourceTestBase::getExpectedCacheContexts function core/modules/editor/tests/src/Functional/Rest/EditorResourceTestBase.php The expected cache contexts for the GET/HEAD response of the test entity.
Entity::getContextDefinition function core/modules/views/src/Plugin/views/argument_validator/Entity.php Returns a context definition for this argument.
EntityAdapterUnitTest::testSetContext function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::setContext
EntityBase::getCacheContexts function core/lib/Drupal/Core/Entity/EntityBase.php The cache contexts associated with this object.
EntityCacheTagsTestBase::getAccessCacheContextsForEntity function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the access cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntity function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the additional (non-standard) cache contexts for the tested entity.
EntityCacheTagsTestBase::getAdditionalCacheContextsForEntityListing function core/modules/system/tests/src/Functional/Entity/EntityCacheTagsTestBase.php Returns the additional cache tags for the tested entity's listing by type.
EntityContext class core/lib/Drupal/Core/Plugin/Context/EntityContext.php Class to provide a specific entity context.
EntityContext.php file core/lib/Drupal/Core/Plugin/Context/EntityContext.php
EntityContext::fromEntity function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context object from an entity.
EntityContext::fromEntityType function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context from an entity type.
EntityContext::fromEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContext.php Gets a context from an entity type ID.
EntityContextDefinition class core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Defines a class to provide entity context definitions.
EntityContextDefinition.php file core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php
EntityContextDefinition::fromEntity function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity object.
EntityContextDefinition::fromEntityType function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity type.
EntityContextDefinition::fromEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Creates a context definition from a given entity type ID.
EntityContextDefinition::getConstraintObjects function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Extracts an array of constraints for a context definition object.
EntityContextDefinition::getEntityTypeId function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Returns the entity type ID of this context.
EntityContextDefinition::getSampleValues function core/lib/Drupal/Core/Plugin/Context/EntityContextDefinition.php Returns typed data objects representing this context definition.

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