interface MainContentBlockPluginInterface in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Block/MainContentBlockPluginInterface.php \Drupal\Core\Block\MainContentBlockPluginInterface
- 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
- interface \Drupal\Component\Plugin\ConfigurableInterface; interface \Drupal\Component\Plugin\DependentPluginInterface; interface \Drupal\Core\Plugin\PluginFormInterface; interface \Drupal\Component\Plugin\PluginInspectionInterface; interface \Drupal\Core\Cache\CacheableDependencyInterface; interface \Drupal\Component\Plugin\DerivativeInspectionInterface
- interface \Drupal\Core\Block\BlockPluginInterface
- interface \Drupal\Core\Block\MainContentBlockPluginInterface
- interface \Drupal\Core\Block\BlockPluginInterface
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\BlockView 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);
}