You are here

public static function Gravatar::getFallbackTypes in Avatar Kit 8

Valid fallback types for when 'gravatar' is the primary type.

Return value

string[] An array of fallback avatar types.

Overrides GravatarInterface::getFallbackTypes

2 calls to Gravatar::getFallbackTypes()
Gravatar::getUrl in avatars_gravatar/src/Gravatar.php
Gets the URL for the avatar.
Gravatar::setFallbackType in avatars_gravatar/src/Gravatar.php
The type used for when 'gravatar' type fails.

File

avatars_gravatar/src/Gravatar.php, line 95

Class

Gravatar
Implements the Gravatar.com API.

Namespace

Drupal\avatars_gravatar

Code

public static function getFallbackTypes() {
  return array_diff(array_keys(Gravatar::getTypesMap()), [
    'gravatar',
  ]);
}