public function BackgroundMedia::submitStyleFormElements in Bootstrap Styles 1.0.x
Overrides StylePluginBase::submitStyleFormElements
File
- src/
Plugin/ BootstrapStyles/ Style/ BackgroundMedia.php, line 350
Class
- BackgroundMedia
- Class BackgroundMedia.
Namespace
Drupal\bootstrap_styles\Plugin\BootstrapStyles\StyleCode
public function submitStyleFormElements(array $group_elements) {
return [
'background_media' => [
'image' => [
'media_id' => $group_elements['background_image'],
],
'video' => [
'media_id' => $group_elements['background_video'],
],
'background_options' => [
'background_position' => $group_elements['background_options']['background_position'],
'background_repeat' => $group_elements['background_options']['background_repeat'],
'background_attachment' => $group_elements['background_options']['background_attachment'],
'background_size' => $group_elements['background_options']['background_size'],
],
],
];
}