You are here

public function AvatarBaseInterface::setType in Avatar Kit 8

Sets the avatar type.

Parameters

string $type: The avatar type.

Return value

\Drupal\avatars\AvatarBaseInterface Returns the called Robohash object for chaining.

Throws

\Drupal\avatars\Exception\AvatarException Thrown if this the type is not defined.

See also

\Drupal\avatars\AvatarBaseInterface::getTypes()

1 method overrides AvatarBaseInterface::setType()
AvatarBase::setType in src/AvatarBase.php
Sets the avatar type.

File

src/AvatarBaseInterface.php, line 92

Class

AvatarBaseInterface
Interface for Avatar APIs.

Namespace

Drupal\avatars

Code

public function setType($type);