You are here

public function NameFormatForm::delete in Name Field 8

File

src/Form/NameFormatForm.php, line 96

Class

NameFormatForm
Provides a base form controller for date formats.

Namespace

Drupal\name\Form

Code

public function delete(array $form, FormStateInterface $form_state) {
  $form_state['redirect_route'] = [
    'route_name' => 'name_format_delete_confirm',
    'route_parameters' => [
      'name_format' => $this->entity
        ->id(),
    ],
  ];
}