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