You are here

public function InsertViewCommand::__construct in Advanced Insert View 2.0.x

Same name and namespace in other branches
  1. 8 src/Ajax/InsertViewCommand.php \Drupal\insert_view_adv\Ajax\InsertViewCommand::__construct()

Constructs an EmbedInsertCommand object.

Parameters

string|array $content: The content that will be inserted in the matched element(s), either a render array or an HTML string.

File

src/Ajax/InsertViewCommand.php, line 34

Class

InsertViewCommand
AJAX command for inserting an embedded item in an editor.

Namespace

Drupal\insert_view_adv\Ajax

Code

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