public function Host::setExpiry in http:BL 8
Sets the value for the expire field of a host entity.
Parameters
integer $timestamp: The new Host expire time.
Return value
\Drupal\httpbl\HostInterface The called host entity.
Overrides HostInterface::setExpiry
File
- src/
Entity/ Host.php, line 107 - Contains \Drupal\httpbl\Entity\Host.
Class
- Host
- Defines the host entity class.
Namespace
Drupal\httpbl\EntityCode
public function setExpiry($timestamp) {
$this
->get('expire')->value = $timestamp;
return $this;
}