function SystemMainBlock::setMainContent

Same name in other branches
  1. 8.9.x core/modules/system/src/Plugin/Block/SystemMainBlock.php \Drupal\system\Plugin\Block\SystemMainBlock::setMainContent()
  2. 10 core/modules/system/src/Plugin/Block/SystemMainBlock.php \Drupal\system\Plugin\Block\SystemMainBlock::setMainContent()
  3. 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\Block

Code

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.