You are here

public function ContributorSettings::submitForm in Bibliography & Citation 8

Same name and namespace in other branches
  1. 2.0.x modules/bibcite_entity/src/Form/ContributorSettings.php \Drupal\bibcite_entity\Form\ContributorSettings::submitForm()

Form submission handler.

Parameters

array $form: An associative array containing the structure of the form.

\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.

Overrides ConfigFormBase::submitForm

File

modules/bibcite_entity/src/Form/ContributorSettings.php, line 56

Class

ContributorSettings
Common contributor settings.

Namespace

Drupal\bibcite_entity\Form

Code

public function submitForm(array &$form, FormStateInterface $form_state) {
  $config = $this
    ->config('bibcite_entity.contributor.settings');
  $config
    ->set('full_name_pattern', $form_state
    ->getValue('full_name_pattern'))
    ->save();
  parent::submitForm($form, $form_state);
}