You are here

protected function BaseOneColumnLayout::getBottomPaddingOptions in Layout Builder Base 8

Gets the bottom padding options for the configuration form.

Return value

string[] The bottom 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::getBottomPaddingOptions

File

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

Class

BaseOneColumnLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

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