public function BrightcoveCronSettingsForm::submitForm in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Form/BrightcoveCronSettingsForm.php \Drupal\brightcove\Form\BrightcoveCronSettingsForm::submitForm()
- 3.x src/Form/BrightcoveCronSettingsForm.php \Drupal\brightcove\Form\BrightcoveCronSettingsForm::submitForm()
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/ BrightcoveCronSettingsForm.php, line 46
Class
- BrightcoveCronSettingsForm
- Builds the form for managing Brightcove cron settings.
Namespace
Drupal\brightcove\FormCode
public function submitForm(array &$form, FormStateInterface $form_state) {
$this
->config('brightcove.settings')
->set('disable_cron', $form_state
->getValue('disable_cron'))
->save();
parent::submitForm($form, $form_state);
}