3 namespace Drupal\system\Plugin\Block;
5 use Drupal\Core\Block\BlockBase;
6 use Drupal\Core\Block\MainContentBlockPluginInterface;
9 * Provides a 'Main page content' block.
12 * id = "system_main_block",
13 * admin_label = @Translation("Main page content")
16 class SystemMainBlock extends BlockBase implements MainContentBlockPluginInterface {
19 * The render array representing the main page content.
23 protected $mainContent;
28 public function setMainContent(array $main_content) {
29 $this->mainContent = $main_content;
35 public function build() {
36 return $this->mainContent;