You are here

public function SystemMainBlock::setMainContent in Drupal 8

Same name and namespace in other branches
  1. 9 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\Block

Code

public function setMainContent(array $main_content) {
  $this->mainContent = $main_content;
}