You are here

public static function HostQuery::getHostsByIp in http:BL 8

Implemented in HostQuery.

Overrides Host::getHostsByIp

2 calls to HostQuery::getHostsByIp()
HostForm::buildEntity in src/Form/HostForm.php
Builds an updated entity object based upon the submitted form values.
HostQuery::loadHostsByIp in src/HostQuery.php
Implemented in HostQuery.

File

src/HostQuery.php, line 16
Contains \Drupal\httpbl\HostQuery.

Class

HostQuery

Namespace

Drupal\httpbl

Code

public static function getHostsByIp($ip) {
  $query = \Drupal::entityQuery('host');
  $query
    ->condition('host_ip', $ip);

  /** @var array $entity_ids */
  $entity_ids = $query
    ->execute();
  return $entity_ids;
}