You are here

public function BackgroundColor::submitStyleFormElements in Bootstrap Styles 1.0.x

Overrides StylePluginBase::submitStyleFormElements

File

src/Plugin/BootstrapStyles/Style/BackgroundColor.php, line 100

Class

BackgroundColor
Class BackgroundColor.

Namespace

Drupal\bootstrap_styles\Plugin\BootstrapStyles\Style

Code

public function submitStyleFormElements(array $group_elements) {
  $storage = [
    'background_color' => [
      'class' => $group_elements['background_color'],
    ],
  ];

  // Responsive.
  $fields = [
    'background_color',
  ];
  $this
    ->saveBreakpointsStyleFormFields($group_elements, $storage, $fields);
  return $storage;
}