You are here

public function ChangePasswordForm::getEntity in Password Separate Form 8

Returns the user.

Return value

\Drupal\user\UserInterface The User profile for the current user.

File

src/Form/ChangePasswordForm.php, line 173

Class

ChangePasswordForm
Provides a user password reset form.

Namespace

Drupal\change_pwd_page\Form

Code

public function getEntity() {
  return $this->userProfile;
}