modules/custom/deims_d6_migration/migration/DeimsContentBookMigration.php

Summary

Maintainability
A
2 hrs
Test Coverage
<?php

/**
 * @file
 * Definition of DeimsContentBookMigration.
 */

class DeimsContentBookMigration extends DrupalNode6Migration {
  protected $dependencies = array();

  public function __construct(array $arguments) {
    $arguments += array(
      'description' => '',
      'source_connection' => 'drupal6',
      'source_version' => 6,
      'source_type' => 'book',
      'destination_type' => 'page',
      'user_migration' => 'DeimsUser',
    );

    parent::__construct($arguments);
  }

  public function prepareRow($row) {
    parent::prepareRow($row);
  }

  public function prepare($node, $row) {
    // Remove any empty or illegal delta field values.
    EntityHelper::removeInvalidFieldDeltas('node', $node);
    EntityHelper::removeEmptyFieldValues('node', $node);
  }
}