You are here

public function AvatarPreview::getAvatarGeneratorId in Avatar Kit 8

Get avatar generator plugin ID.

Return value

string An avatar generator plugin ID.

Overrides AvatarPreviewInterface::getAvatarGeneratorId

File

src/Entity/AvatarPreview.php, line 31

Class

AvatarPreview
Defines the avatar preview entity.

Namespace

Drupal\avatars\Entity

Code

public function getAvatarGeneratorId() {
  return $this
    ->get('avatar_generator')->value;
}