You are here

public function NameListFormatForm::delete in Name Field 8

File

src/Form/NameListFormatForm.php, line 136

Class

NameListFormatForm
Provides a form controller for name list formats.

Namespace

Drupal\name\Form

Code

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