You are here

public function AvatarBase::setHostName in Avatar Kit 8

Sets the request host name.

Parameters

string|null $hostname: A host name, or NULL to reset to default.

Return value

\Drupal\avatars\AvatarBaseInterface Returns the called Robohash object for chaining.

Overrides AvatarBaseInterface::setHostName

File

src/AvatarBase.php, line 101

Class

AvatarBase
Abstract class for Avatar APIs.

Namespace

Drupal\avatars

Code

public function setHostName($hostname = NULL) {
  $this->hostname = $hostname;
}