public function ContextBlockPageVariant::setMainContent in Context 8.4
Same name and namespace in other branches
- 8 src/Plugin/DisplayVariant/ContextBlockPageVariant.php \Drupal\context\Plugin\DisplayVariant\ContextBlockPageVariant::setMainContent()
- 8.0 src/Plugin/DisplayVariant/ContextBlockPageVariant.php \Drupal\context\Plugin\DisplayVariant\ContextBlockPageVariant::setMainContent()
Sets the main content for the page being rendered.
Parameters
array $main_content: The render array representing the main content.
Return value
$this
Overrides PageVariantInterface::setMainContent
File
- src/
Plugin/ DisplayVariant/ ContextBlockPageVariant.php, line 103
Class
- ContextBlockPageVariant
- Provides a page display variant that decorates the main content with blocks.
Namespace
Drupal\context\Plugin\DisplayVariantCode
public function setMainContent(array $main_content) {
$this->mainContent = $main_content;
return $this;
}