You are here

public function LayoutParagraphsBuilder::getInfo in Layout Paragraphs 2.0.x

Properties:

  • #layout_paragraphs_layout: a LayoutParagraphsLayout instance.
  • #uuid: if provided, the uuid of the single paragraph to render.
  • #sounce_langcode: if provided, the source entity language.

Overrides ElementInterface::getInfo

File

src/Element/LayoutParagraphsBuilder.php, line 156

Class

LayoutParagraphsBuilder
Defines a render element for building the Layout Builder UI.

Namespace

Drupal\layout_paragraphs\Element

Code

public function getInfo() {
  return [
    '#layout_paragraphs_layout' => NULL,
    '#uuid' => NULL,
    '#source_langcode' => NULL,
    '#theme' => 'layout_paragraphs_builder',
    '#pre_render' => [
      [
        $this,
        'preRender',
      ],
    ],
  ];
}