public function SettingsForm::submitForm in Default Content Deploy 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/ SettingsForm.php, line 58 - Contains \Drupal\default_content_deploy\Form\SettingsForm.
Class
- SettingsForm
- Settings form.
Namespace
Drupal\default_content_deploy\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this->configFactory
->getEditable(static::DIRECTORY)
->set('content_directory', $form_state
->getValue('content_directory'))
->save();
parent::submitForm($form, $form_state);
}