public function KeywordSettingsForm::submitForm in Alinks 8
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
- src/
Form/ KeywordSettingsForm.php, line 90
Class
- KeywordSettingsForm
- Class KeywordSettingsForm.
Namespace
Drupal\alinks\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->configFactory()
->getEditable('alinks.settings')
->set('vocabularies', array_filter($form_state
->getValue('vocabularies')))
->save();
}