function BlockPageVariant::setMainContent
Same name in other branches
- 9 core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::setMainContent()
- 10 core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::setMainContent()
- 11.x core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php \Drupal\block\Plugin\DisplayVariant\BlockPageVariant::setMainContent()
Overrides PageVariantInterface::setMainContent
File
-
core/
modules/ block/ src/ Plugin/ DisplayVariant/ BlockPageVariant.php, line 109
Class
- BlockPageVariant
- Provides a page display variant that decorates the main content with blocks.
Namespace
Drupal\block\Plugin\DisplayVariantCode
public function setMainContent(array $main_content) {
$this->mainContent = $main_content;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.