protected function BaseOneColumnLayout::getBackgroundSizeOptions in Layout Builder Base 8
Gets the background size options for the configuration form.
Return value
string[] The background size 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::getBackgroundSizeOptions
File
- modules/
layout_builder_base_library/ src/ Plugin/ Layout/ BaseOneColumnLayout.php, line 103
Class
- BaseOneColumnLayout
- Configurable layout plugin class.
Namespace
Drupal\layout_builder_base_library\Plugin\LayoutCode
protected function getBackgroundSizeOptions() {
$options = [
'layout--background-size--default' => $this
->t('Default'),
'layout--background-size--cover' => $this
->t('Cover'),
'layout--background-size--contain' => $this
->t('Contain'),
];
$this->moduleHandler
->alter('layout_builder_base_background_size', $options);
return $options;
}