function ReplaceTitleCommand::__construct

Same name in other branches
  1. 9 core/modules/views/src/Ajax/ReplaceTitleCommand.php \Drupal\views\Ajax\ReplaceTitleCommand::__construct()
  2. 8.9.x core/modules/views/src/Ajax/ReplaceTitleCommand.php \Drupal\views\Ajax\ReplaceTitleCommand::__construct()
  3. 11.x core/modules/views/src/Ajax/ReplaceTitleCommand.php \Drupal\views\Ajax\ReplaceTitleCommand::__construct()

Constructs a \Drupal\views\Ajax\ReplaceTitleCommand object.

Parameters

string $title: The title of the page.

File

core/modules/views/src/Ajax/ReplaceTitleCommand.php, line 27

Class

ReplaceTitleCommand
Provides an AJAX command for replacing the page title.

Namespace

Drupal\views\Ajax

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.