You are here

class BlankLayout in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php \Drupal\layout_builder\Plugin\Layout\BlankLayout
  2. 9 core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php \Drupal\layout_builder\Plugin\Layout\BlankLayout

Provides a layout plugin that produces no output.

@internal This layout plugin is intended for internal use by Layout Builder only.

Plugin annotation


@Layout(
  id = "layout_builder_blank",
)

Hierarchy

Expanded class hierarchy of BlankLayout

See also

\Drupal\layout_builder\Field\LayoutSectionItemList::removeSection()

\Drupal\layout_builder\SectionListTrait::addBlankSection()

\Drupal\layout_builder\SectionListTrait::hasBlankSection()

File

core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php, line 21

Namespace

Drupal\layout_builder\Plugin\Layout
View source
class BlankLayout extends LayoutDefault {

  /**
   * {@inheritdoc}
   */
  public function build(array $regions) {

    // Return no output.
    return [];
  }

}

Members