You are here

public function CronJobForm::save in Ultimate Cron 8.2

Overrides Drupal\Core\Entity\EntityForm::save().

Overrides EntityForm::save

File

src/Form/CronJobForm.php, line 166

Class

CronJobForm
Base form controller for cron job forms.

Namespace

Drupal\ultimate_cron\Form

Code

public function save(array $form, FormStateInterface $form_state) {
  parent::save($form, $form_state);
  $this
    ->messenger()
    ->addStatus(t('job %label has been updated.', [
    '%label' => $this->entity
      ->label(),
  ]));
  $form_state
    ->setRedirect('entity.ultimate_cron_job.collection');
}