public function LayoutParagraphsInsertCommand::render in Layout Paragraphs 1.0.x
Render custom ajax command.
Return value
ajax Command function.
Overrides CommandInterface::render
File
- src/
Ajax/ LayoutParagraphsInsertCommand.php, line 47
Class
- LayoutParagraphsInsertCommand
- Class LayoutParagraphsStateResetCommand.
Namespace
Drupal\layout_paragraphs\AjaxCode
public function render() {
return [
'command' => 'layoutParagraphsInsert',
'content' => $this
->getRenderedContent(),
'settings' => $this->settings,
];
}