ProfileType.php in Commerce Migrate 3.0.x
File
modules/commerce/src/Plugin/migrate/source/commerce1/ProfileType.php
View source
<?php
namespace Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1;
use Drupal\migrate_drupal\Plugin\migrate\source\DrupalSqlBase;
class ProfileType extends DrupalSqlBase {
public function query() {
return $this
->select('commerce_customer_profile', 'cp')
->fields('cp', [
'type',
])
->distinct();
}
public function fields() {
return [
'type' => $this
->t('Type'),
];
}
public function getIds() {
$ids['type']['type'] = 'string';
return $ids;
}
}
Classes
Name |
Description |
ProfileType |
Drupal 7 commerce_customer_profile source from database. |