protected function BaseMultipleColumnsLayout::getColumnGapOptions in Layout Builder Base 8
Gets the column gap options for the configuration form.
Return value
string[] The column 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::getColumnGapOptions
File
- modules/
layout_builder_base_library/ src/ Plugin/ Layout/ BaseMultipleColumnsLayout.php, line 23
Class
- BaseMultipleColumnsLayout
- Configurable layout plugin class.
Namespace
Drupal\layout_builder_base_library\Plugin\LayoutCode
protected function getColumnGapOptions() {
$options = [
'layout--column-gap--none' => $this
->t('None'),
'layout--column-gap--small' => $this
->t('Small'),
'layout--column-gap--default' => $this
->t('Default'),
'layout--column-gap--big' => $this
->t('Big'),
];
$this->moduleHandler
->alter('layout_builder_base_column_gap', $options);
return $options;
}