You are here

interface MainContentBlockPluginInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Block/MainContentBlockPluginInterface.php \Drupal\Core\Block\MainContentBlockPluginInterface
  2. 9 core/lib/Drupal/Core/Block/MainContentBlockPluginInterface.php \Drupal\Core\Block\MainContentBlockPluginInterface

The interface for "main page content" blocks.

A main page content block represents the content returned by the controller.

Hierarchy

Expanded class hierarchy of MainContentBlockPluginInterface

All classes that implement MainContentBlockPluginInterface

Related topics

3 files declare their use of MainContentBlockPluginInterface
BlockPageVariant.php in core/modules/block/src/Plugin/DisplayVariant/BlockPageVariant.php
BlockViewBuilder.php in core/modules/block/src/BlockViewBuilder.php
SystemMainBlock.php in core/modules/system/src/Plugin/Block/SystemMainBlock.php

File

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

Namespace

Drupal\Core\Block
View source
interface MainContentBlockPluginInterface extends BlockPluginInterface {

  /**
   * Sets the main content render array.
   *
   * @param array $main_content
   *   The render array representing the main content.
   */
  public function setMainContent(array $main_content);

}

Members