You are here

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

Implemented in HostQuery.

Overrides Host::getExpiredHosts

1 call to HostQuery::getExpiredHosts()
HostQuery::loadExpiredHosts in src/HostQuery.php
Implemented in HostQuery.

File

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

Class

HostQuery

Namespace

Drupal\httpbl

Code

public static function getExpiredHosts($now) {
  $query = \Drupal::entityQuery('host');
  $query
    ->condition('expire', $now, '<=');
  $entity_ids = $query
    ->execute();
  return $entity_ids;
}