function EntityBlock::import

Same name in other branches
  1. 9 core/modules/block/src/Plugin/migrate/destination/EntityBlock.php \Drupal\block\Plugin\migrate\destination\EntityBlock::import()
  2. 11.x core/modules/block/src/Plugin/migrate/destination/EntityBlock.php \Drupal\block\Plugin\migrate\destination\EntityBlock::import()

Overrides EntityConfigBase::import

File

core/modules/block/src/Plugin/migrate/destination/EntityBlock.php, line 33

Class

EntityBlock
Migrate destination for block entity.

Namespace

Drupal\block\Plugin\migrate\destination

Code

public function import(Row $row, array $old_destination_id_values = []) {
    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.