function MultiWidthLayoutBase::defaultConfiguration

Same name in other branches
  1. 9 core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::defaultConfiguration()
  2. 8.9.x core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::defaultConfiguration()
  3. 11.x core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::defaultConfiguration()

Overrides LayoutDefault::defaultConfiguration

File

core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php, line 17

Class

MultiWidthLayoutBase
Base class of layouts with configurable widths.

Namespace

Drupal\layout_builder\Plugin\Layout

Code

public function defaultConfiguration() {
    $configuration = parent::defaultConfiguration();
    return $configuration + [
        'column_widths' => $this->getDefaultWidth(),
    ];
}

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