You are here

public function Gravatar::setFallbackUri in Avatar Kit 8

The URI to an image used for when 'gravatar' type fails.

Such as when there is no Gravatar for the hash.

Parameters

string $uri: The URI of an image to use as a fallback.

Return value

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

Overrides GravatarInterface::setFallbackUri

File

avatars_gravatar/src/Gravatar.php, line 125

Class

Gravatar
Implements the Gravatar.com API.

Namespace

Drupal\avatars_gravatar

Code

public function setFallbackUri($uri) {
  $this->fallbackURI = $uri;
  $this->fallbackType = NULL;
  return $this;
}