You are here

public function PanelsEverywhereDisplayVariant::setTitle 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::setTitle()

Sets the title for the page being rendered.

Parameters

string|array $title: The page title: either a string for plain titles or a render array for formatted titles.

Return value

$this

Overrides PageVariantInterface::setTitle

File

src/Plugin/DisplayVariant/PanelsEverywhereDisplayVariant.php, line 46

Class

PanelsEverywhereDisplayVariant
Provides a display variant that simply contains blocks.

Namespace

Drupal\panels_everywhere\Plugin\DisplayVariant

Code

public function setTitle($title) {
  $this->title = $title;
  return $this;
}