You are here

public function BackgroundMedia::submitConfigurationForm in Bootstrap Styles 1.0.x

Overrides StylePluginBase::submitConfigurationForm

File

src/Plugin/BootstrapStyles/Style/BackgroundMedia.php, line 214

Class

BackgroundMedia
Class BackgroundMedia.

Namespace

Drupal\bootstrap_styles\Plugin\BootstrapStyles\Style

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config()
    ->set('background_image.bundle', $form_state
    ->getValue('background_image_bundle'))
    ->set('background_image.field', $form_state
    ->getValue('background_image_field'))
    ->set('background_local_video.bundle', $form_state
    ->getValue('background_local_video_bundle'))
    ->set('background_local_video.field', $form_state
    ->getValue('background_local_video_field'))
    ->save();
}