You are here

public static function Gravatar::getTypes in Avatar Kit 8

Gets list of avatar types provided by this API.

Return value

string[] An array of type labels, keyed by type.

Overrides AvatarBaseInterface::getTypes

File

avatars_gravatar/src/Gravatar.php, line 64

Class

Gravatar
Implements the Gravatar.com API.

Namespace

Drupal\avatars_gravatar

Code

public static function getTypes() {
  return [
    'gravatar' => 'Gravatar',
    'mysteryman' => 'Mystery Man',
    'identicon' => 'Identicon',
    'monsterid' => 'Monsterid',
    'wavatar' => 'Wavatar',
    'retro' => 'Retro',
    'blank' => 'Blank',
  ];
}