You are here

public function Gravatar::getHostName in Avatar Kit 8

Gets the request host name.

Return value

string A host name.

Overrides AvatarBase::getHostName

1 call to Gravatar::getHostName()
Gravatar::getUrl in avatars_gravatar/src/Gravatar.php
Gets the URL for the avatar.

File

avatars_gravatar/src/Gravatar.php, line 56

Class

Gravatar
Implements the Gravatar.com API.

Namespace

Drupal\avatars_gravatar

Code

public function getHostName() {
  $hostname = parent::getHostName();
  return isset($hostname) ? $hostname : ($this
    ->isSecure() ? static::GRAVATAR_HOSTNAME_SECURE : static::GRAVATAR_HOSTNAME);
}