You are here

public function GravatarInterface::setRating in Avatar Kit 8

Sets the maximum gravatar rating.

Parameters

string|null $rating: The rating to set, or NULL if no rating.

Return value

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

Throws

\Drupal\avatars\Exception\AvatarException Thrown if the rating is invalid.

1 method overrides GravatarInterface::setRating()
Gravatar::setRating in avatars_gravatar/src/Gravatar.php
Sets the maximum gravatar rating.

File

avatars_gravatar/src/GravatarInterface.php, line 119

Class

GravatarInterface
Provides an interface for the Gravatar.com API.

Namespace

Drupal\avatars_gravatar

Code

public function setRating($rating = NULL);