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