public function SystemMainBlock::setMainContent in Drupal 9
Same name and namespace in other branches
- 8 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 31
Class
- SystemMainBlock
- Provides a 'Main page content' block.
Namespace
Drupal\system\Plugin\BlockCode
public function setMainContent(array $main_content) {
$this->mainContent = $main_content;
}