You are here

protected function ComponentFormBase::renderParagraph in Layout Paragraphs 2.0.x

Renders a single Layout Paragraphs Layout paragraph entity.

Parameters

string $uuid: The uuid of the paragraph entity to render.

Return value

array The paragraph render array.

2 calls to ComponentFormBase::renderParagraph()
EditComponentForm::successfulAjaxSubmit in src/Form/EditComponentForm.php
Allows the form to respond to a successful AJAX submission.
InsertComponentForm::successfulAjaxSubmit in src/Form/InsertComponentForm.php
Allows the form to respond to a successful AJAX submission.

File

src/Form/ComponentFormBase.php, line 476

Class

ComponentFormBase
Class LayoutParagraphsComponentFormBase.

Namespace

Drupal\layout_paragraphs\Form

Code

protected function renderParagraph(string $uuid) {
  return [
    '#type' => 'layout_paragraphs_builder',
    '#layout_paragraphs_layout' => $this->layoutParagraphsLayout,
    '#uuid' => $uuid,
  ];
}