public function SynonymSettingsForm::submitForm in Search API Synonym 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/ SynonymSettingsForm.php, line 171
Class
- SynonymSettingsForm
- Class SynonymSettingsForm.
Namespace
Drupal\search_api_synonym\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$values = $form_state
->getValue('cron');
$values['interval'] = $form_state
->getValue('interval');
$this
->config($this
->getEditableConfigNames()[0])
->set('cron', $values)
->save();
parent::submitForm($form, $form_state);
}