You are here

public function Robohash::getHostName in Avatar Kit 8

Gets the request host name.

Return value

string A host name.

Overrides AvatarBase::getHostName

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

File

avatars_robohash/src/Robohash.php, line 35

Class

Robohash
Implements the Robohash.org API.

Namespace

Drupal\avatars_robohash

Code

public function getHostName() {
  $hostname = parent::getHostName();
  return isset($hostname) ? $hostname : $this::ROBOHASH_HOSTNAME;
}