You are here

protected function LayoutBuilderUX::layout in Layout Builder UX 8

Renders the Layout UI.

Parameters

\Drupal\layout_builder\SectionStorageInterface $section_storage: The section storage.

Return value

array A render array.

Overrides LayoutBuilder::layout

File

src/Element/LayoutBuilderUX.php, line 138

Class

LayoutBuilderUX
Alters the Layout Builder UI element.

Namespace

Drupal\lb_ux\Element

Code

protected function layout(SectionStorageInterface $section_storage) {
  $build = parent::layout($section_storage);
  $build['#attached']['library'][] = 'lb_ux/drupal.lb_ux';
  $build['#attached']['library'][] = 'lb_ux/drupal.lb_ux_message';
  return $build;
}