class ReplaceTitleCommand implements CommandInterface (View source)

Provides an AJAX command for replacing the page title.

This command is implemented in Drupal.AjaxCommands.prototype.viewsReplaceTitle.

Properties

protected string $title

The page title to replace.

Methods

__construct(string $title)

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

render()

Return an array to be run through json_encode and sent to the client.

Details

__construct(string $title)

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

Parameters

string $title

The title of the page.

render()

Return an array to be run through json_encode and sent to the client.