public function CustomMetaSettingsForm::submitForm in Custom Meta 2.0.x
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/ CustomMetaSettingsForm.php, line 45
Class
- CustomMetaSettingsForm
- Defines the custom meta settings form.
Namespace
Drupal\custom_meta\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$settings = $this
->config('custom_meta.settings');
$settings
->set('prefix', $form_state
->getValue('custom_meta_prefix'));
$settings
->save();
parent::submitForm($form, $form_state);
}