You are here

public function BlockedIps::query in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/ban/src/Plugin/migrate/source/d7/BlockedIps.php \Drupal\ban\Plugin\migrate\source\d7\BlockedIps::query()
  2. 9 core/modules/ban/src/Plugin/migrate/source/d7/BlockedIps.php \Drupal\ban\Plugin\migrate\source\d7\BlockedIps::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

core/modules/ban/src/Plugin/migrate/source/d7/BlockedIps.php, line 25

Class

BlockedIps
Drupal 7 blocked IPs source from database.

Namespace

Drupal\ban\Plugin\migrate\source\d7

Code

public function query() {
  return $this
    ->select('blocked_ips', 'bi')
    ->fields('bi', [
    'ip',
  ]);
}