You are here

public function PanelsEverywhereDisplayVariant::setMainContent in Panels Everywhere 8

Same name and namespace in other branches
  1. 8.4 src/Plugin/DisplayVariant/PanelsEverywhereDisplayVariant.php \Drupal\panels_everywhere\Plugin\DisplayVariant\PanelsEverywhereDisplayVariant::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/PanelsEverywhereDisplayVariant.php, line 54

Class

PanelsEverywhereDisplayVariant
Provides a display variant that simply contains blocks.

Namespace

Drupal\panels_everywhere\Plugin\DisplayVariant

Code

public function setMainContent(array $main_content) {
  $this->mainContent = $main_content;
  return $this;
}