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