You are here

public function AvatarPreview::getUser in Avatar Kit 8

Get associated user.

Return value

\Drupal\user\UserInterface A user entity.

Overrides AvatarPreviewInterface::getUser

File

src/Entity/AvatarPreview.php, line 46

Class

AvatarPreview
Defines the avatar preview entity.

Namespace

Drupal\avatars\Entity

Code

public function getUser() {
  return $this
    ->get('uid')->entity;
}