You are here

public function GravatarInterface::setFallbackType in Avatar Kit 8

The type used for when 'gravatar' type fails.

Such as when there is no Gravatar for the hash.

Parameters

string|null $type: An avatar type.

Return value

\Drupal\avatars_gravatar\GravatarInterface Returns the called object for chaining.

Throws

\Drupal\avatars\Exception\AvatarException Thrown if the passed type is invalid.

1 method overrides GravatarInterface::setFallbackType()
Gravatar::setFallbackType in avatars_gravatar/src/Gravatar.php
The type used for when 'gravatar' type fails.

File

avatars_gravatar/src/GravatarInterface.php, line 76

Class

GravatarInterface
Provides an interface for the Gravatar.com API.

Namespace

Drupal\avatars_gravatar

Code

public function setFallbackType($type = NULL);