You are here

protected function BaseOneColumnLayout::getEqualLeftRightPaddingsOptions in Layout Builder Base 8

Gets the left and right equal padding options for the configuration form.

Return value

string[] The left and right 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::getEqualLeftRightPaddingsOptions

File

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

Class

BaseOneColumnLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

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