interface MainContentBlockPluginInterface in Drupal 9
Same name and namespace in other branches
- 8 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);
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BlockPluginInterface:: |
public | function | Indicates whether the block should be shown. | |
BlockPluginInterface:: |
public | function | Returns the configuration form elements specific to this block plugin. | |
BlockPluginInterface:: |
public | function | Adds block type-specific submission handling for the block form. | |
BlockPluginInterface:: |
public | function | Adds block type-specific validation for the block form. | |
BlockPluginInterface:: |
constant | Indicates the block label (title) should be displayed to end users. | ||
BlockPluginInterface:: |
public | function | Builds and returns the renderable array for this block plugin. | 49 |
BlockPluginInterface:: |
public | function | Suggests a machine name to identify an instance of this block. | |
BlockPluginInterface:: |
public | function | Returns the user-facing block label. | |
BlockPluginInterface:: |
public | function | Sets a particular value in the block settings. | |
CacheableDependencyInterface:: |
public | function | The cache contexts associated with this object. | 34 |
CacheableDependencyInterface:: |
public | function | The maximum age for which this object may be cached. | 34 |
CacheableDependencyInterface:: |
public | function | The cache tags associated with this object. | 27 |
ConfigurableInterface:: |
public | function | Gets default configuration for this plugin. | 14 |
ConfigurableInterface:: |
public | function | Gets this plugin's configuration. | 15 |
ConfigurableInterface:: |
public | function | Sets the configuration for this plugin instance. | 15 |
DependentPluginInterface:: |
public | function | Calculates dependencies for the configured plugin. | 20 |
DerivativeInspectionInterface:: |
public | function | Gets the base_plugin_id of the plugin instance. | 1 |
DerivativeInspectionInterface:: |
public | function | Gets the derivative_id of the plugin instance. | 1 |
MainContentBlockPluginInterface:: |
public | function | Sets the main content render array. | 1 |
PluginFormInterface:: |
public | function | Form constructor. | 37 |
PluginFormInterface:: |
public | function | Form submission handler. | 32 |
PluginFormInterface:: |
public | function | Form validation handler. | 18 |
PluginInspectionInterface:: |
public | function | Gets the definition of the plugin implementation. | 4 |
PluginInspectionInterface:: |
public | function | Gets the plugin_id of the plugin instance. | 2 |