You are here

public function UserController::editForm in Profile 8

Builds the edit form.

Parameters

\Drupal\profile\Entity\ProfileInterface $profile: The profile.

Return value

array The response.

1 call to UserController::editForm()
UserController::singlePage in src/Controller/UserController.php
Builds the add/edit page for "single" profile types.

File

src/Controller/UserController.php, line 106

Class

UserController
Provides the profile UI for users.

Namespace

Drupal\profile\Controller

Code

public function editForm(ProfileInterface $profile) {
  return $this
    ->entityFormBuilder()
    ->getForm($profile, 'edit');
}