Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. MainContentBlockPluginInterface.php

function MainContentBlockPluginInterface::setMainContent

Sets the main content render array.

Parameters

array $main_content: The render array representing the main content.

1 method overrides MainContentBlockPluginInterface::setMainContent()
SystemMainBlock::setMainContent in core/modules/system/src/Plugin/Block/SystemMainBlock.php
Sets the main content render array.

File

core/lib/Drupal/Core/Block/MainContentBlockPluginInterface.php, line 20

Class

MainContentBlockPluginInterface
The interface for "main page content" blocks.

Namespace

Drupal\Core\Block

Code

public function setMainContent(array $main_content);

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal