You are here

public function Host::getExpiry in http:BL 8

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

Return value

integer (timestamp) The host expire field.

Overrides HostInterface::getExpiry

File

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

Class

Host
Defines the host entity class.

Namespace

Drupal\httpbl\Entity

Code

public function getExpiry() {
  return $this
    ->get('expire')->value;
}