You are here

public function Adorable::setIsSecure in Avatar Kit 8

Sets the request to secure.

Parameters

bool $secure_request: If the request should be secure.

Return value

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

Throws

\Drupal\avatars\Exception\AvatarException Thrown if API does not support the requested secure state.

Overrides AvatarBase::setIsSecure

File

avatars_adorable/src/Adorable.php, line 43

Class

Adorable
Implements the Adorable.io API.

Namespace

Drupal\avatars_adorable

Code

public function setIsSecure($secure_request = TRUE) {
  if ($secure_request) {
    throw new AvatarException('Adorable does not support secure requests.');
  }
  return parent::setIsSecure($secure_request);
}