function EntityBlock::import
Same name and namespace in other branches
- 11.x core/modules/block/src/Plugin/migrate/destination/EntityBlock.php \Drupal\block\Plugin\migrate\destination\EntityBlock::import()
- 10 core/modules/block/src/Plugin/migrate/destination/EntityBlock.php \Drupal\block\Plugin\migrate\destination\EntityBlock::import()
- 9 core/modules/block/src/Plugin/migrate/destination/EntityBlock.php \Drupal\block\Plugin\migrate\destination\EntityBlock::import()
Overrides EntityConfigBase::import
Deprecated
in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement.
See also
https://www.drupal.org/node/3533565
File
-
core/
modules/ block/ src/ Plugin/ migrate/ destination/ EntityBlock.php, line 38
Class
- EntityBlock
- Migrate destination for block entity.
Namespace
Drupal\block\Plugin\migrate\destinationCode
public function import(Row $row, array $old_destination_id_values = []) {
@trigger_error(__METHOD__ . '() is deprecated in drupal:11.3.0 and is removed from drupal:12.0.0. There is no replacement. See https://www.drupal.org/node/3533565', E_USER_DEPRECATED);
try {
$entity_ids = parent::import($row, $old_destination_id_values);
} catch (SchemaIncompleteException $e) {
throw new MigrateException($e->getMessage());
}
return $entity_ids;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.