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"),
15 * "settings_tray" = FALSE,
19 class SystemMainBlock extends BlockBase implements MainContentBlockPluginInterface {
22 * The render array representing the main page content.
26 protected $mainContent;
31 public function setMainContent(array $main_content) {
32 $this->mainContent = $main_content;
38 public function build() {
39 return $this->mainContent;