You are here

public function InsertViewCommand::render 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::render()

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

Overrides CommandInterface::render

File

src/Ajax/InsertViewCommand.php, line 41

Class

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

Namespace

Drupal\insert_view_adv\Ajax

Code

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