You are here

public function SystemMainBlock::build in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/src/Plugin/Block/SystemMainBlock.php \Drupal\system\Plugin\Block\SystemMainBlock::build()
  2. 9 core/modules/system/src/Plugin/Block/SystemMainBlock.php \Drupal\system\Plugin\Block\SystemMainBlock::build()

File

core/modules/system/src/Plugin/Block/SystemMainBlock.php, line 38

Class

SystemMainBlock
Provides a 'Main page content' block.

Namespace

Drupal\system\Plugin\Block

Code

public function build() {
  return $this->mainContent;
}