You are here

public function ProfileTypeFormController::delete in Profile 2 8

File

src/ProfileTypeFormController.php, line 111
Contains \Drupal\profile\ProfileTypeFormController.

Class

ProfileTypeFormController
Form controller for profile type forms.

Namespace

Drupal\profile

Code

public function delete(array $form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('entity.profile_type.delete_form', array(
    'profile_type' => $this->entity
      ->id(),
  ));
}