You are here

public function ProfileController::deleteProfile in Profile 2 8

Provides profile delete form.

Parameters

$user:

$type:

$id:

Return value

array

File

src/Controller/ProfileController.php, line 51
Contains \Drupal\profile\Controller\ProfileController.

Class

ProfileController
Returns responses for ProfileController routes.

Namespace

Drupal\profile\Controller

Code

public function deleteProfile($user, $type, $id) {
  return $this
    ->entityFormBuilder()
    ->getForm(Profile::load($id), 'delete');
}