Search for setMainContent

  1. Search 7.x for setMainContent
  2. Search 9.5.x for setMainContent
  3. Search 8.9.x for setMainContent
  4. Search 10.3.x for setMainContent
  5. Other projects
Title Object type File name Summary
BlockPageVariant::setMainContent function core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php
MainContentBlockPluginInterface::setMainContent function core/lib/Drupal/Core/Block/MainContentBlockPluginInterface.php Sets the main content render array.
PageVariantInterface::setMainContent function core/lib/Drupal/Core/Display/PageVariantInterface.php Sets the main content for the page being rendered.
SimplePageVariant::setMainContent function core/lib/Drupal/Core/Render/Plugin/DisplayVariant/SimplePageVariant.php Sets the main content for the page being rendered.
SystemMainBlock::setMainContent function core/modules/system/src/Plugin/Block/SystemMainBlock.php
TestDisplayVariant::setMainContent function core/modules/system/tests/modules/display_variant_test/src/Plugin/DisplayVariant/TestDisplayVariant.php

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