You are here

public function Gravatar::__construct in Avatar Kit 8

Constructs a new Gravatar object.

File

avatars_gravatar/src/Gravatar.php, line 45

Class

Gravatar
Implements the Gravatar.com API.

Namespace

Drupal\avatars_gravatar

Code

public function __construct() {
  $this->fallbackType = '404';
  $this
    ->setDimensionConstraints(GravatarInterface::DIMENSION_MINIMUM_WIDTH, GravatarInterface::DIMENSION_MAXIMUM_WIDTH);
}