You are here

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

Overrides StylePluginBase::submitConfigurationForm

File

src/Plugin/BootstrapStyles/Style/Margin.php, line 78

Class

Margin
Class Margin.

Namespace

Drupal\bootstrap_styles\Plugin\BootstrapStyles\Style

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config()
    ->set('margin', $form_state
    ->getValue('margin'))
    ->set('margin_left', $form_state
    ->getValue('margin_left'))
    ->set('margin_top', $form_state
    ->getValue('margin_top'))
    ->set('margin_right', $form_state
    ->getValue('margin_right'))
    ->set('margin_bottom', $form_state
    ->getValue('margin_bottom'))
    ->save();
}