You are here

public function LayoutParagraphsEventCommand::render in Layout Paragraphs 2.0.x

Render custom ajax command.

Return value

array The command array.

Overrides CommandInterface::render

File

src/Ajax/LayoutParagraphsEventCommand.php, line 48

Class

LayoutParagraphsEventCommand
Class ExampleCommand.

Namespace

Drupal\layout_paragraphs\Ajax

Code

public function render() {
  return [
    'command' => 'LayoutParagraphsEventCommand',
    'layoutId' => $this->layout
      ->id(),
    'componentUuid' => $this->componentUuid,
    'eventName' => $this->eventName,
  ];
}