public function SetFormCommand::__construct

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

Parameters

string $output: The form to display in the modal.

string $title: The title of the form.

string $url: (optional) An optional URL of the form.

File

drupal/core/modules/views/lib/Drupal/views/Ajax/SetFormCommand.php, line 50
Contains \Drupal\views\Ajax\SetFormCommand.

Class

SetFormCommand
Provides an AJAX command for setting a form in the views edit modal.

Namespace

Drupal\views\Ajax

Code

public function __construct($output, $title, $url = NULL) {
  $this->output = $output;
  $this->title = $title;
  $this->url = $url;
}