public function AddParagraphTypeCommand::render in Paragraphs Browser 8
Implements \Drupal\Core\Ajax\CommandInterface::render().
Overrides CommandInterface::render
File
- src/
Ajax/ AddParagraphTypeCommand.php, line 42
Class
- AddParagraphTypeCommand
- AJAX command to trigger related paragraph add on host form.
Namespace
Drupal\paragraphs_browser\AjaxCode
public function render() {
return [
'command' => 'paragraphs_browser_add_paragraph',
'uuid' => $this->uuid,
'paragraph_type' => $this->paragraph_type,
];
}