You are here

public function AvatarPreviewInterface::setUser in Avatar Kit 8

Set associated user.

Parameters

\Drupal\user\UserInterface $user: A user entity.

Return value

\Drupal\avatars\AvatarPreviewInterface Return avatar preview for chaining.

1 method overrides AvatarPreviewInterface::setUser()
AvatarPreview::setUser in src/Entity/AvatarPreview.php
Set associated user.

File

src/AvatarPreviewInterface.php, line 97

Class

AvatarPreviewInterface
Provides an interface for the avatar preview entity.

Namespace

Drupal\avatars

Code

public function setUser(UserInterface $user);