You are here

SiteAlertForm.php in Site Alert 8

File

src/Entity/Form/SiteAlertForm.php
View source
<?php

namespace Drupal\site_alert\Entity\Form;

use Drupal\Core\Entity\ContentEntityForm;
use Drupal\Core\Form\FormStateInterface;

/**
 * Implements SiteAlertForm class.
 */
class SiteAlertForm extends ContentEntityForm {

  /**
   * {@inheritdoc}
   */
  public function save(array $form, FormStateInterface $form_state) {
    parent::save($form, $form_state);
    $form_state
      ->setRedirect('entity.site_alert.collection');
  }

}

Classes

Namesort descending Description
SiteAlertForm Implements SiteAlertForm class.