You are here

public static function Gravatar::getRatings in Avatar Kit 8

Get a list of valid ratings.

Return value

array An array of rating labels keyed by rating.

Overrides GravatarInterface::getRatings

1 call to Gravatar::getRatings()
Gravatar::setRating in avatars_gravatar/src/Gravatar.php
Sets the maximum gravatar rating.

File

avatars_gravatar/src/Gravatar.php, line 134

Class

Gravatar
Implements the Gravatar.com API.

Namespace

Drupal\avatars_gravatar

Code

public static function getRatings() {
  return [
    'g' => 'G',
    'pg' => 'PG',
    'r' => 'R',
    'x' => 'X',
  ];
}