You are here

public function BaseLayoutBase::defaultConfiguration in Layout Builder Base 8

Gets default configuration for this plugin.

Return value

array An associative array with the default configuration.

Overrides MultiWidthLayoutBase::defaultConfiguration

File

src/Plugin/Layout/BaseLayoutBase.php, line 59

Class

BaseLayoutBase
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base\Plugin\Layout

Code

public function defaultConfiguration() {
  $config = [
    'column_gap' => $this
      ->getDefaultColumnGap(),
    'row_gap' => $this
      ->getDefaultRowGap(),
    'column_width' => $this
      ->getDefaultColumnWidth(),
    'column_breakpoint' => $this
      ->getDefaultColumnBreakpoint(),
    'align_items' => $this
      ->getDefaultAlignItems(),
    'background' => $this
      ->getDefaultBackground(),
    'background_image' => $this
      ->getDefaultImageBackground(),
    'background_image_style' => $this
      ->getDefaultBackgroundImageStyle(),
    'background_attachment' => $this
      ->getDefaultBackgroundAttachment(),
    'background_position' => $this
      ->getDefaultBackgroundPosition(),
    'background_size' => $this
      ->getDefaultBackgroundSize(),
    'background_overlay' => $this
      ->getDefaultBackgroundOverlay(),
    'equal_top_bottom_margins' => $this
      ->getDefaultEqualTopBottomMargin(),
    'equal_left_right_margins' => $this
      ->getDefaultEqualLeftRightMargin(),
    'top_margin' => $this
      ->getDefaultTopMargin(),
    'right_margin' => $this
      ->getDefaultRightMargin(),
    'bottom_margin' => $this
      ->getDefaultBottomMargin(),
    'left_margin' => $this
      ->getDefaultLeftMargin(),
    'equal_top_bottom_paddings' => $this
      ->getDefaultEqualTopBottomPadding(),
    'equal_left_right_paddings' => $this
      ->getDefaultEqualLeftRightPadding(),
    'top_padding' => $this
      ->getDefaultTopPadding(),
    'right_padding' => $this
      ->getDefaultRightPadding(),
    'bottom_padding' => $this
      ->getDefaultBottomPadding(),
    'left_padding' => $this
      ->getDefaultLeftPadding(),
    'container' => $this
      ->getDefaultContainer(),
    'content_container' => $this
      ->getDefaultContentContainer(),
    'height' => $this
      ->getDefaultHeight(),
    'color' => $this
      ->getDefaultColor(),
    'alignment' => $this
      ->getDefaultAlignment(),
    'modifier' => $this
      ->getDefaultModifiers(),
    'customizable_columns' => $this
      ->getDefaultCustomizableColumns(),
  ];
  return array_merge(parent::defaultConfiguration(), $config);
}