You are here

public function Host::setHostIp in http:BL 8

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

Parameters

string $ip: The new Host Ip address.

Return value

\Drupal\httpbl\HostInterface The called host entity.

Overrides HostInterface::setHostIp

File

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

Class

Host
Defines the host entity class.

Namespace

Drupal\httpbl\Entity

Code

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