public function BlockedIP::import in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/ban/src/Plugin/migrate/destination/BlockedIp.php \Drupal\ban\Plugin\migrate\destination\BlockedIP::import()
Import the row.
Derived classes must implement import(), to construct one new object (pre-populated) using ID mappings in the Migration.
Parameters
\Drupal\migrate\Row $row: The row object.
array $old_destination_id_values: The old destination ids.
Return value
mixed The entity id or an indication of success.
Overrides MigrateDestinationInterface::import
File
- core/
modules/ ban/ src/ Plugin/ migrate/ destination/ BlockedIp.php, line 84 - Contains \Drupal\ban\Plugin\migrate\destination\BlockedIP.
Class
- BlockedIP
- Destination for blocked IP addresses.
Namespace
Drupal\ban\Plugin\migrate\destinationCode
public function import(Row $row, array $old_destination_id_values = array()) {
$this->banManager
->banIp($row
->getDestinationProperty('ip'));
}