You are here

class MigrateUuidNodeHandler in Migrate Extras 6.2

Node specific UUID Handler. This needs to be separate since nodes have the revision_uuid field as well.

Hierarchy

Expanded class hierarchy of MigrateUuidNodeHandler

1 string reference to 'MigrateUuidNodeHandler'
migrate_extras_migrate_api in ./migrate_extras.module

File

./uuid.inc, line 35
Support for Universally Unique Identifier (uuid) module.

View source
class MigrateUuidNodeHandler extends MigrateDestinationHandler {
  public function __construct() {
    $this
      ->registerTypes(array(
      'node',
    ));
  }

  /**
   * Make the destination field visible.
   */
  public function fields() {
    if (module_exists('uuid')) {
      return array(
        'uuid' => t('Universally Unique IDentifier'),
        'revision_uuid' => t('Universally Unique IDentifier (revision)'),
      );
    }
    else {
      return array();
    }
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MigrateHandler::$dependencies protected property List of other handler classes which should be invoked before the current one.
MigrateHandler::$typesHandled protected property List of "types" handled by this handler. Depending on the kind of handler, these may be destination types, field types, etc.
MigrateHandler::getDependencies public function
MigrateHandler::getTypesHandled public function
MigrateHandler::handlesType public function Does this handler handle the given type?
MigrateHandler::registerTypes protected function Register a list of types handled by this class
MigrateUuidNodeHandler::fields public function Make the destination field visible.
MigrateUuidNodeHandler::__construct public function Overrides MigrateHandler::__construct