public function SimplePageVariant::setMainContent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Render/Plugin/DisplayVariant/SimplePageVariant.php \Drupal\Core\Render\Plugin\DisplayVariant\SimplePageVariant::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
- core/
lib/ Drupal/ Core/ Render/ Plugin/ DisplayVariant/ SimplePageVariant.php, line 40 - Contains \Drupal\Core\Render\Plugin\DisplayVariant\SimplePageVariant.
Class
- SimplePageVariant
- Provides a page display variant that simply renders the main content.
Namespace
Drupal\Core\Render\Plugin\DisplayVariantCode
public function setMainContent(array $main_content) {
$this->mainContent = $main_content;
return $this;
}