You are here

public function LayoutParagraphsStateResetCommand::render in Layout Paragraphs 1.0.x

Render custom ajax command.

Return value

ajax Command function.

Overrides CommandInterface::render

File

src/Ajax/LayoutParagraphsStateResetCommand.php, line 32

Class

LayoutParagraphsStateResetCommand
Class LayoutParagraphsStateResetCommand.

Namespace

Drupal\layout_paragraphs\Ajax

Code

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