public function ReplaceTitleCommand::__construct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/views/src/Ajax/ReplaceTitleCommand.php \Drupal\views\Ajax\ReplaceTitleCommand::__construct()
- 9 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\AjaxCode
public function __construct($title) {
$this->title = $title;
}