function BlockedIp::import
Same name in other branches
- 9 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::import()
- 8.9.x core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::import()
- 11.x core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIp::import()
Overrides MigrateDestinationInterface::import
File
-
core/
modules/ ban/ src/ Plugin/ migrate/ destination/ BlockedIp.php, line 77
Class
- BlockedIp
- Destination for blocked IP addresses.
Namespace
Drupal\ban\Plugin\migrate\destinationCode
public function import(Row $row, array $old_destination_id_values = []) {
$this->banManager
->banIp($row->getDestinationProperty('ip'));
return [
'ip' => $row->getDestinationProperty('ip'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.