You are here

protected function BaseOneColumnLayout::getEqualTopBottomPaddingsOptions in Layout Builder Base 8

Gets the top and bottom equal padding options for the configuration form.

Return value

string[] The top and bottom equal padding options array where the keys are strings that will be added to the CSS classes and the values are the human readable labels.

Overrides DefaultLayoutBase::getEqualTopBottomPaddingsOptions

File

modules/layout_builder_base_library/src/Plugin/Layout/BaseOneColumnLayout.php, line 292

Class

BaseOneColumnLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

protected function getEqualTopBottomPaddingsOptions() {
  $options = [
    '' => $this
      ->t('Choose'),
    'layout--top-bottom-padding--none' => $this
      ->t('None'),
    'layout--top-bottom-padding--small' => $this
      ->t('Small paddings'),
    'layout--top-bottom-padding--default' => $this
      ->t('Default paddings'),
    'layout--top-bottom-padding--big' => $this
      ->t('Big paddings'),
  ];
  $this->moduleHandler
    ->alter('layout_builder_base_top_bottom_paddings', $options);
  return $options;
}