You are here

public function AvatarBaseInterface::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.

1 method overrides AvatarBaseInterface::setIsSecure()
AvatarBase::setIsSecure in src/AvatarBase.php
Sets the request to secure.

File

src/AvatarBaseInterface.php, line 130

Class

AvatarBaseInterface
Interface for Avatar APIs.

Namespace

Drupal\avatars

Code

public function setIsSecure($secure_request = TRUE);