You are here

protected function BaseOneColumnLayout::getBottomMarginOptions in Layout Builder Base 8

Gets the bottom margin options for the configuration form.

Return value

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

File

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

Class

BaseOneColumnLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

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