public function ComponentsSettingsForm::submitForm in Components! 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/ ComponentsSettingsForm.php, line 58 - Contains \Drupal\components\Form\ComponentSettingsForm.
Class
- ComponentsSettingsForm
- Configure components settings for this site.
Namespace
Drupal\components\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
// Retrieve the configuration
$this->configFactory
->getEditable(static::SETTINGS)
->set('namespace_prefix', $form_state
->getValue('namespace_prefix'))
->save();
parent::submitForm($form, $form_state);
}