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\avatarsCode
public function setUser(UserInterface $user);