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