You are here

path.inc in Migrate 6.2

Same filename and directory in other branches
  1. 7.2 plugins/destinations/path.inc

Support for paths in core Drupal objects

File

plugins/destinations/path.inc
View source
<?php

/**
 * @file
 * Support for paths in core Drupal objects
 */
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();
  }

}

Classes

Namesort descending Description
MigratePathNodeHandler @file Support for paths in core Drupal objects