function SystemMainBlock::setMainContent
Same name in other branches
- 8.9.x core/modules/system/src/Plugin/Block/SystemMainBlock.php \Drupal\system\Plugin\Block\SystemMainBlock::setMainContent()
- 10 core/modules/system/src/Plugin/Block/SystemMainBlock.php \Drupal\system\Plugin\Block\SystemMainBlock::setMainContent()
- 11.x core/modules/system/src/Plugin/Block/SystemMainBlock.php \Drupal\system\Plugin\Block\SystemMainBlock::setMainContent()
Overrides MainContentBlockPluginInterface::setMainContent
File
-
core/
modules/ system/ src/ Plugin/ Block/ SystemMainBlock.php, line 31
Class
- SystemMainBlock
- Provides a 'Main page content' block.
Namespace
Drupal\system\Plugin\BlockCode
public function setMainContent(array $main_content) {
$this->mainContent = $main_content;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.