You are here

BlankLayout.php in Drupal 8

Same filename and directory in other branches
  1. 9 core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php

File

core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php
View source
<?php

namespace Drupal\layout_builder\Plugin\Layout;

use Drupal\Core\Layout\LayoutDefault;

/**
 * Provides a layout plugin that produces no output.
 *
 * @see \Drupal\layout_builder\Field\LayoutSectionItemList::removeSection()
 * @see \Drupal\layout_builder\SectionStorage\SectionStorageTrait::addBlankSection()
 * @see \Drupal\layout_builder\SectionStorage\SectionStorageTrait::hasBlankSection()
 *
 * @internal
 *   This layout plugin is intended for internal use by Layout Builder only.
 *
 * @Layout(
 *   id = "layout_builder_blank",
 * )
 */
class BlankLayout extends LayoutDefault {

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

    // Return no output.
    return [];
  }

}

Classes

Namesort descending Description
BlankLayout Provides a layout plugin that produces no output.