public function AvatarBase::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 AvatarBaseInterface::setIsSecure
1 call to AvatarBase::setIsSecure()
- Adorable::setIsSecure in avatars_adorable/
src/ Adorable.php - Sets the request to secure.
1 method overrides AvatarBase::setIsSecure()
- Adorable::setIsSecure in avatars_adorable/
src/ Adorable.php - Sets the request to secure.
File
- src/
AvatarBase.php, line 159
Class
- AvatarBase
- Abstract class for Avatar APIs.
Namespace
Drupal\avatarsCode
public function setIsSecure($secure_request = TRUE) {
$this->secure = $secure_request;
return $this;
}