You are here

public function SettingsForm::getProperties in Layout Builder Base 8

Function to get the properties list.

Return value

array The list of the properties.

2 calls to SettingsForm::getProperties()
SettingsForm::buildForm in src/Form/SettingsForm.php
Form constructor.
SettingsForm::submitForm in src/Form/SettingsForm.php
Form submission handler.

File

src/Form/SettingsForm.php, line 161

Class

SettingsForm
Class SettingsForm.

Namespace

Drupal\layout_builder_base\Form

Code

public function getProperties() {
  return [
    'column_gap' => [
      'label' => $this
        ->t('Column gap'),
      'group' => 'grid',
    ],
    'row_gap' => [
      'label' => $this
        ->t('Row gap'),
      'group' => 'grid',
    ],
    'column_breakpoint' => [
      'label' => $this
        ->t('Column breakpoint'),
      'group' => 'grid',
    ],
    'column_width' => [
      'label' => $this
        ->t('Columns width'),
      'group' => 'grid',
    ],
    'two_column_width' => [
      'label' => $this
        ->t('Two Columns width'),
      'group' => 'grid',
    ],
    'three_column_width' => [
      'label' => $this
        ->t('Three Columns width'),
      'group' => 'grid',
    ],
    'align_items' => [
      'label' => $this
        ->t('Align items'),
      'group' => 'grid',
    ],
    'customizable_columns' => [
      'label' => $this
        ->t('Customizable columns'),
      'group' => 'grid',
    ],
    'background' => [
      'label' => $this
        ->t('Background'),
      'group' => 'background_detail',
    ],
    'background_position' => [
      'label' => $this
        ->t('Background Position'),
      'group' => 'background_detail',
    ],
    'background_attachment' => [
      'label' => $this
        ->t('Background Attachment'),
      'group' => 'background_detail',
    ],
    'background_size' => [
      'label' => $this
        ->t('Background Size'),
      'group' => 'background_detail',
    ],
    'background_overlay' => [
      'label' => $this
        ->t('Background Overlay'),
      'group' => 'background_detail',
    ],
    'top_margin' => [
      'label' => $this
        ->t('Top Margin'),
      'group' => 'margin',
    ],
    'bottom_margin' => [
      'label' => $this
        ->t('Bottom Margin'),
      'group' => 'margin',
    ],
    'left_margin' => [
      'label' => $this
        ->t('Left Margin'),
      'group' => 'margin',
    ],
    'right_margin' => [
      'label' => $this
        ->t('Right Margin'),
      'group' => 'margin',
    ],
    'equal_top_bottom_margins' => [
      'label' => $this
        ->t('Top Bottom Margins'),
      'group' => 'margin',
    ],
    'equal_left_right_margins' => [
      'label' => $this
        ->t('Left Right Margins'),
      'group' => 'margin',
    ],
    'top_padding' => [
      'label' => $this
        ->t('Top Padding'),
      'group' => 'padding',
    ],
    'bottom_padding' => [
      'label' => $this
        ->t('Bottom Padding'),
      'group' => 'padding',
    ],
    'left_padding' => [
      'label' => $this
        ->t('Left Padding'),
      'group' => 'padding',
    ],
    'right_padding' => [
      'label' => $this
        ->t('Right Padding'),
      'group' => 'padding',
    ],
    'equal_top_bottom_paddings' => [
      'label' => $this
        ->t('Top Bottom Paddings'),
      'group' => 'padding',
    ],
    'equal_left_right_paddings' => [
      'label' => $this
        ->t('Left Right Paddings'),
      'group' => 'padding',
    ],
    'height' => [
      'label' => $this
        ->t('Height'),
      'group' => 'container',
    ],
    'container' => [
      'label' => $this
        ->t('Container'),
      'group' => 'container',
    ],
    'content_container' => [
      'label' => $this
        ->t('Content Container'),
      'group' => 'container',
    ],
    'color' => [
      'label' => $this
        ->t('Default color'),
      'group' => 'styles',
    ],
    'alignment' => [
      'label' => $this
        ->t('Default alignment'),
      'group' => 'styles',
    ],
    'modifiers' => [
      'label' => $this
        ->t('Modifiers'),
      'group' => 'styles',
    ],
  ];
}