You are here

protected function BaseOneColumnLayout::getBackgroundOverlayOptions in Layout Builder Base 8

Gets the background overlay options for the configuration form.

Return value

string[] The background overlay 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::getBackgroundOverlayOptions

File

modules/layout_builder_base_library/src/Plugin/Layout/BaseOneColumnLayout.php, line 117

Class

BaseOneColumnLayout
Configurable layout plugin class.

Namespace

Drupal\layout_builder_base_library\Plugin\Layout

Code

protected function getBackgroundOverlayOptions() {
  $options = [
    'layout--background-overlay--none' => $this
      ->t('None'),
    'layout--background-overlay--dark-light' => $this
      ->t('Light Dark'),
    'layout--background-overlay--dark' => $this
      ->t('Dark'),
    'layout--background-overlay--darker' => $this
      ->t('Darker'),
  ];
  $this->moduleHandler
    ->alter('layout_builder_base_background_overlay', $options);
  return $options;
}