You are here

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

Overrides StylePluginBase::submitConfigurationForm

File

src/Plugin/BootstrapStyles/Style/Border.php, line 199

Class

Border
Class Border.

Namespace

Drupal\bootstrap_styles\Plugin\BootstrapStyles\Style

Code

public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
  $this
    ->config()
    ->set('border_style', $form_state
    ->getValue('border_style'))
    ->set('border_left_style', $form_state
    ->getValue('border_left_style'))
    ->set('border_top_style', $form_state
    ->getValue('border_top_style'))
    ->set('border_right_style', $form_state
    ->getValue('border_right_style'))
    ->set('border_bottom_style', $form_state
    ->getValue('border_bottom_style'))
    ->set('border_width', $form_state
    ->getValue('border_width'))
    ->set('border_left_width', $form_state
    ->getValue('border_left_width'))
    ->set('border_top_width', $form_state
    ->getValue('border_top_width'))
    ->set('border_right_width', $form_state
    ->getValue('border_right_width'))
    ->set('border_bottom_width', $form_state
    ->getValue('border_bottom_width'))
    ->set('border_color', $form_state
    ->getValue('border_color'))
    ->set('border_left_color', $form_state
    ->getValue('border_left_color'))
    ->set('border_top_color', $form_state
    ->getValue('border_top_color'))
    ->set('border_right_color', $form_state
    ->getValue('border_right_color'))
    ->set('border_bottom_color', $form_state
    ->getValue('border_bottom_color'))
    ->set('rounded_corners', $form_state
    ->getValue('rounded_corners'))
    ->set('rounded_corner_top_left', $form_state
    ->getValue('rounded_corner_top_left'))
    ->set('rounded_corner_top_right', $form_state
    ->getValue('rounded_corner_top_right'))
    ->set('rounded_corner_bottom_left', $form_state
    ->getValue('rounded_corner_bottom_left'))
    ->set('rounded_corner_bottom_right', $form_state
    ->getValue('rounded_corner_bottom_right'))
    ->save();
}