Security update for Core, with self-updated composer
[yaffs-website] / web / core / modules / ban / src / Plugin / migrate / source / d7 / BlockedIps.php
1 <?php
2
3 namespace Drupal\ban\Plugin\migrate\source\d7;
4
5 use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
6
7 /**
8  * Drupal 7 blocked IPs from database.
9  *
10  * @MigrateSource(
11  *   id = "d7_blocked_ips",
12  *   source_module = "system"
13  * )
14  */
15 class BlockedIps extends DrupalSqlBase {
16
17   /**
18    * {@inheritdoc}
19    */
20   public function query() {
21     return $this->select('blocked_ips', 'bi')->fields('bi', ['ip']);
22   }
23
24   /**
25    * {@inheritdoc}
26    */
27   public function fields() {
28     return [
29       'ip' => $this->t('The blocked IP address.'),
30     ];
31   }
32
33   /**
34    * {@inheritdoc}
35    */
36   public function getIds() {
37     return ['ip' => ['type' => 'string']];
38   }
39
40 }