You are here

class MigratePathNodeHandler in Migrate 6.2

@file Support for paths in core Drupal objects

Hierarchy

Expanded class hierarchy of MigratePathNodeHandler

1 string reference to 'MigratePathNodeHandler'
migrate_migrate_api in ./migrate.module

File

plugins/destinations/path.inc, line 8
Support for paths in core Drupal objects

View source
class MigratePathNodeHandler extends MigrateDestinationHandler {
  public function __construct() {
    $this
      ->registerTypes(array(
      'node',
    ));
  }
  public function fields($entity_type, $bundle) {
    switch ($entity_type) {
      case 'node':
        return array(
          'path' => t('Node: Path alias'),
        );
    }
    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
MigratePathNodeHandler::fields public function
MigratePathNodeHandler::__construct public function Overrides MigrateHandler::__construct