You are here

public function AvatarPreview::setAvatarGeneratorId in Avatar Kit 8

Set avatar generator plugin ID.

Parameters

string $avatar_generator: An avatar generator plugin ID.

Return value

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

Overrides AvatarPreviewInterface::setAvatarGeneratorId

File

src/Entity/AvatarPreview.php, line 38

Class

AvatarPreview
Defines the avatar preview entity.

Namespace

Drupal\avatars\Entity

Code

public function setAvatarGeneratorId($avatar_generator) {
  $this
    ->set('avatar_generator', $avatar_generator);
  return $this;
}