function SimplePageVariant::setMainContent
Same name in other branches
- 9 core/lib/Drupal/Core/Render/Plugin/DisplayVariant/SimplePageVariant.php \Drupal\Core\Render\Plugin\DisplayVariant\SimplePageVariant::setMainContent()
- 10 core/lib/Drupal/Core/Render/Plugin/DisplayVariant/SimplePageVariant.php \Drupal\Core\Render\Plugin\DisplayVariant\SimplePageVariant::setMainContent()
- 11.x core/lib/Drupal/Core/Render/Plugin/DisplayVariant/SimplePageVariant.php \Drupal\Core\Render\Plugin\DisplayVariant\SimplePageVariant::setMainContent()
Overrides PageVariantInterface::setMainContent
File
-
core/
lib/ Drupal/ Core/ Render/ Plugin/ DisplayVariant/ SimplePageVariant.php, line 35
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;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.