public function MainContentBlockPluginInterface::setMainContent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Block/MainContentBlockPluginInterface.php \Drupal\Core\Block\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 25 - Contains \Drupal\Core\Block\MainContentBlockPluginInterface.
Class
- MainContentBlockPluginInterface
- The interface for "main page content" blocks.
Namespace
Drupal\Core\BlockCode
public function setMainContent(array $main_content);