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