You are here

public function MultiWidthLayoutBase::defaultConfiguration in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/layout_builder/src/Plugin/Layout/MultiWidthLayoutBase.php \Drupal\layout_builder\Plugin\Layout\MultiWidthLayoutBase::defaultConfiguration()

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides LayoutDefault::defaultConfiguration

File

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

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(),
  ];
}