You are here

public function PanelsEverywhereDisplayVariant::setTitle in Panels Everywhere 8.4

Same name and namespace in other branches
  1. 8 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 65

Class

PanelsEverywhereDisplayVariant
Provides a display variant that simply contains blocks.

Namespace

Drupal\panels_everywhere\Plugin\DisplayVariant

Code

public function setTitle($title) {
  $this->title = (string) (is_array($title) ? $this->renderer
    ->renderRoot($title) : $title);
  return $this;
}