public function BackgroundColor::submitConfigurationForm in Bootstrap Styles 1.0.x
Overrides StylePluginBase::submitConfigurationForm
File
- src/
Plugin/ BootstrapStyles/ Style/ BackgroundColor.php, line 51
Class
- BackgroundColor
- Class BackgroundColor.
Namespace
Drupal\bootstrap_styles\Plugin\BootstrapStyles\StyleCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
$this
->config()
->set('background_colors', $form_state
->getValue('background_colors'))
->save();
// Responsive.
$fields = [
'background_colors',
];
$this
->submitBreakpointsConfigurationForm($form_state, $fields);
}