You are here

public function Adorable::getHostName in Avatar Kit 8

Gets the request host name.

Return value

string A host name.

Overrides AvatarBase::getHostName

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

File

avatars_adorable/src/Adorable.php, line 26

Class

Adorable
Implements the Adorable.io API.

Namespace

Drupal\avatars_adorable

Code

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