path.inc in Migrate 6.2
Same filename and directory in other branches
Support for paths in core Drupal objects
File
plugins/destinations/path.incView 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
Name | Description |
---|---|
MigratePathNodeHandler | @file Support for paths in core Drupal objects |