BlankLayout.php

Same filename in other branches
  1. 9 core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php
  2. 8.9.x core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php
  3. 11.x core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php

Namespace

Drupal\layout_builder\Plugin\Layout

File

core/modules/layout_builder/src/Plugin/Layout/BlankLayout.php

View source
<?php

namespace Drupal\layout_builder\Plugin\Layout;

use Drupal\Core\Layout\Attribute\Layout;
use Drupal\Core\Layout\LayoutDefault;
use Drupal\Core\StringTranslation\TranslatableMarkup;

/**
 * Provides a layout plugin that produces no output.
 *
 * @see \Drupal\layout_builder\Field\LayoutSectionItemList::removeSection()
 * @see \Drupal\layout_builder\SectionListTrait::addBlankSection()
 * @see \Drupal\layout_builder\SectionListTrait::hasBlankSection()
 *
 * @internal
 *   This layout plugin is intended for internal use by Layout Builder only.
 */
class BlankLayout extends LayoutDefault {
    
    /**
     * {@inheritdoc}
     */
    public function build(array $regions) {
        // Return no output.
        return [];
    }

}

Classes

Title Deprecated Summary
BlankLayout Provides a layout plugin that produces no output.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.