You are here

public function EmbedInsertCommand::render in Embed 8

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

Overrides CommandInterface::render

File

src/Ajax/EmbedInsertCommand.php, line 41

Class

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

Namespace

Drupal\embed\Ajax

Code

public function render() {
  return [
    'command' => 'embed_insert',
    'data' => $this
      ->getRenderedContent(),
  ];
}