You are here

protected function BaseOneColumnLayout::getRightPaddingOptions in Layout Builder Base 8

Gets the right padding options for the configuration form.

Return value

string[] The right 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::getRightPaddingOptions

File

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

Class

BaseOneColumnLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

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