Newer
Older
<?php
namespace Drupal\filter;
Dries Buytaert
committed
use Drupal\Core\Form\FormStateInterface;
Alex Pott
committed
* Provides a form for adding a filter format.
*
* @internal
Alex Pott
committed
class FilterFormatAddForm extends FilterFormatFormBase {
/**
* {@inheritdoc}
*/
Dries Buytaert
committed
public function form(array $form, FormStateInterface $form_state) {
return parent::form($form, $form_state);
}
/**
* {@inheritdoc}
*/
public function submitForm(array &$form, FormStateInterface $form_state) {
parent::submitForm($form, $form_state);
$this->messenger()->addStatus($this->t('Added text format %format.', ['%format' => $this->entity->label()]));
Lee Rowlands
committed
$form_state->setRedirect('filter.admin_overview');