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