3 namespace Drupal\ban\Plugin\migrate\source\d7;
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
8 * Drupal 7 blocked IPs from database.
11 * id = "d7_blocked_ips",
12 * source_module = "system"
15 class BlockedIps extends DrupalSqlBase {
20 public function query() {
21 return $this->select('blocked_ips', 'bi')->fields('bi', ['ip']);
27 public function fields() {
29 'ip' => $this->t('The blocked IP address.'),
36 public function getIds() {
37 return ['ip' => ['type' => 'string']];