You are here

public function Host::getHostIp in http:BL 8

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

Return value

string The host IP address.

Overrides HostInterface::getHostIp

1 call to Host::getHostIp()
Host::projectLink in src/Entity/Host.php
Creates a link to Project Honey Pot IP Address Inspector for a host entity.

File

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

Class

Host
Defines the host entity class.

Namespace

Drupal\httpbl\Entity

Code

public function getHostIp() {
  return $this
    ->get('host_ip')->value;
}