You are here

protected function BaseMultipleColumnsLayout::getRowGapOptions in Layout Builder Base 8

Gets the row gap options for the configuration form.

Return value

string[] The row gap 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::getRowGapOptions

File

modules/layout_builder_base_library/src/Plugin/Layout/BaseMultipleColumnsLayout.php, line 38

Class

BaseMultipleColumnsLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

protected function getRowGapOptions() {
  $options = [
    'layout--row-gap--none' => $this
      ->t('None'),
    'layout--row-gap--small' => $this
      ->t('Small'),
    'layout--row-gap--default' => $this
      ->t('Default'),
    'layout--row-gap--big' => $this
      ->t('Big'),
  ];
  $this->moduleHandler
    ->alter('layout_builder_base_row_gap', $options);
  return $options;
}