You are here

public function EmbedInsertCommand::__construct in Embed 8

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/EmbedInsertCommand.php, line 34

Class

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

Namespace

Drupal\embed\Ajax

Code

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