public function InsertCommand::__construct

Constructs an InsertCommand object.

Parameters

string $selector: A CSS selector.

string $html: String of HTML that will replace the matched element(s).

array $settings: An array of JavaScript settings to be passed to any attached behaviors.

File

drupal/core/lib/Drupal/Core/Ajax/InsertCommand.php, line 58
Definition of Drupal\Core\Ajax\InsertCommand.

Class

InsertCommand
Generic AJAX command for inserting content.

Namespace

Drupal\Core\Ajax

Code

public function __construct($selector, $html, array $settings = NULL) {
  $this->selector = $selector;
  $this->html = $html;
  $this->settings = $settings;
}