You are here

public function Host::getHostStatus in http:BL 8

Returns the value for the status field of a host entity.

Return value

integer The host status (whether safe, grey or blacklisted).

Overrides HostInterface::getHostStatus

File

src/Entity/Host.php, line 85
Contains \Drupal\httpbl\Entity\Host.

Class

Host
Defines the host entity class.

Namespace

Drupal\httpbl\Entity

Code

public function getHostStatus() {
  return $this
    ->get('host_status')->value;
}