You are here

public function BrightcoveCronSettingsForm::submitForm in Brightcove Video Connect 8.2

Same name and namespace in other branches
  1. 8 src/Form/BrightcoveCronSettingsForm.php \Drupal\brightcove\Form\BrightcoveCronSettingsForm::submitForm()
  2. 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\Form

Code

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);
}