public function SystemMainBlock::setMainContent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/src/Plugin/Block/SystemMainBlock.php \Drupal\system\Plugin\Block\SystemMainBlock::setMainContent()
Sets the main content render array.
Parameters
array $main_content: The render array representing the main content.
Overrides MainContentBlockPluginInterface::setMainContent
File
- core/
modules/ system/ src/ Plugin/ Block/ SystemMainBlock.php, line 33 - Contains \Drupal\system\Plugin\Block\SystemMainBlock.
Class
- SystemMainBlock
- Provides a 'Main page content' block.
Namespace
Drupal\system\Plugin\BlockCode
public function setMainContent(array $main_content) {
$this->mainContent = $main_content;
}