Search for setContext

  1. Search 7.x for setContext
  2. Search 9.5.x for setContext
  3. Search 8.9.x for setContext
  4. Search 10.3.x for setContext
  5. Other projects
Title Object type File name Summary
AccessAwareRouter::setContext function core/lib/Drupal/Core/Routing/AccessAwareRouter.php
Context::setContextValue function core/lib/Drupal/Core/Plugin/Context/Context.php Sets the context value.
ContextAwarePluginInterface::setContext function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Set a context on this plugin.
ContextAwarePluginInterface::setContextMapping function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Sets a mapping of the expected assignment names to their context names.
ContextAwarePluginInterface::setContextValue function core/lib/Drupal/Component/Plugin/ContextAwarePluginInterface.php Sets the value for a defined context.
ContextAwarePluginTrait::setContext function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::setContextMapping function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTrait::setContextValue function core/lib/Drupal/Core/Plugin/ContextAwarePluginTrait.php
ContextAwarePluginTraitTest::testSetContextValue function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php @covers ::setContextValue
ContextAwareVariantInterface::setContexts function core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Sets the context values for this display variant.
ContextTest::testSetContextValueCacheableDependency function core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php @covers ::setContextValue
ContextTest::testSetContextValueTypedData function core/tests/Drupal/Tests/Core/Plugin/Context/ContextTest.php @covers ::setContextValue
DefaultsSectionStorage::setContext function core/modules/layout_builder/src/Plugin/SectionStorage/DefaultsSectionStorage.php
EntityAdapterUnitTest::testSetContext function core/tests/Drupal/Tests/Core/Entity/TypedData/EntityAdapterUnitTest.php @covers ::setContext
MetadataBubblingUrlGenerator::setContext function core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php
PageDisplayVariantSelectionEvent::setContexts function core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php Sets the contexts to be passed to the page display variant.
PoItem::setContext function core/lib/Drupal/Component/Gettext/PoItem.php Set the context this translation belongs to.
SupernovaGenerator::setContext function core/modules/help/tests/modules/help_test/src/SupernovaGenerator.php
TestContextAwarePlugin::$setContextCalled property core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Indicates if ::setContext() has been called or not.
TestContextAwarePlugin::setContext function core/tests/Drupal/KernelTests/Core/Plugin/Context/ContextAwarePluginTraitTest.php Set a context on this plugin.
TestDisplayVariant::setContexts function core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php Sets the contexts.
TypedData::setContext function core/lib/Drupal/Core/TypedData/TypedData.php Sets the context of a property or item via a context aware parent.
TypedDataInterface::setContext function core/lib/Drupal/Core/TypedData/TypedDataInterface.php Sets the context of a property or item via a context aware parent.
UrlGenerator::setContext function core/lib/Drupal/Core/Routing/UrlGenerator.php

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