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\ControllerCode
public function deleteProfile($user, $type, $id) {
return $this
->entityFormBuilder()
->getForm(Profile::load($id), 'delete');
}