Search for setContexts

  1. Search 7.x for setContexts
  2. Search 9.5.x for setContexts
  3. Search 8.9.x for setContexts
  4. Search 11.x for setContexts
  5. Other projects
Title Object type File name Summary
ContextAwareVariantInterface::setContexts function core/lib/Drupal/Core/Display/ContextAwareVariantInterface.php Sets the context values for this display variant.
PageDisplayVariantSelectionEvent::setContexts function core/lib/Drupal/Core/Render/PageDisplayVariantSelectionEvent.php Sets the contexts to be passed to the page display variant.
TestDisplayVariant::setContexts function core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php Sets the contexts.

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