public function AddParagraphTypeCommand::__construct in Paragraphs Browser 8
Constructs a \Drupal\entity_browser\Ajax\AddParagraphTypeCommand object.
Parameters
string $uuid: Entity browser instance UUID.
array $paragraph_type: The type of paragraph that was selected.
File
- src/
Ajax/ AddParagraphTypeCommand.php, line 34
Class
- AddParagraphTypeCommand
- AJAX command to trigger related paragraph add on host form.
Namespace
Drupal\paragraphs_browser\AjaxCode
public function __construct($uuid, $paragraph_type) {
$this->uuid = $uuid;
$this->paragraph_type = $paragraph_type;
}