Drupal 8  8.0.2
MainContentBlockPluginInterface Interface Reference
Inheritance diagram for MainContentBlockPluginInterface:

Public Member Functions

 setMainContent (array $main_content)
 
- Public Member Functions inherited from BlockPluginInterface
 label ()
 
 access (AccountInterface $account, $return_as_object=FALSE)
 
 build ()
 
 setConfigurationValue ($key, $value)
 
 blockForm ($form, FormStateInterface $form_state)
 
 blockValidate ($form, FormStateInterface $form_state)
 
 blockSubmit ($form, FormStateInterface $form_state)
 
 getMachineNameSuggestion ()
 
- Public Member Functions inherited from ConfigurablePluginInterface
 getConfiguration ()
 
 setConfiguration (array $configuration)
 
 defaultConfiguration ()
 
- Public Member Functions inherited from DependentPluginInterface
 calculateDependencies ()
 
- Public Member Functions inherited from PluginFormInterface
 buildConfigurationForm (array $form, FormStateInterface $form_state)
 
 validateConfigurationForm (array &$form, FormStateInterface $form_state)
 
 submitConfigurationForm (array &$form, FormStateInterface $form_state)
 
- Public Member Functions inherited from PluginInspectionInterface
 getPluginId ()
 
 getPluginDefinition ()
 
- Public Member Functions inherited from CacheableDependencyInterface
 getCacheContexts ()
 
 getCacheTags ()
 
 getCacheMaxAge ()
 
- Public Member Functions inherited from DerivativeInspectionInterface
 getBaseId ()
 
 getDerivativeId ()
 

Detailed Description

The interface for "main page content" blocks.

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

Member Function Documentation

setMainContent ( array  $main_content)

Sets the main content render array.

Parameters
array$main_contentThe render array representing the main content.

Implemented in SystemMainBlock.


The documentation for this interface was generated from the following file: