NodeDestinationHandler.inc in CRM Core 7
File
modules/crm_core_data_import/plugins/destination/NodeDestinationHandler.inc
View source
<?php
$plugin = array(
'label' => t('Node'),
'handler' => array(
'class' => 'NodeContactDataDestinationHandler',
),
);
class NodeContactDataDestinationHandler extends CRMCoreDataDestinationHandler {
public function __construct() {
$this->entityType = 'node';
}
public function getFields($bundle) {
$fields = parent::getFields($bundle);
$fields['title'] = t('Title');
return $fields;
}
public function migrateDestination($entity_bundle) {
return new MigrateDestinationNode($entity_bundle);
}
public function migrateDestinationMap() {
return MigrateDestinationNode::getKeySchema();
}
}