public function Profile::fields in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/commerce/src/Plugin/migrate/source/commerce1/Profile.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\Profile::fields()
- 3.0.x modules/commerce/src/Plugin/migrate/source/commerce1/Profile.php \Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1\Profile::fields()
Returns available fields on the source.
Return value
array Available fields in the source, keys are the field machine names as used in field mappings, values are descriptions.
Overrides MigrateSourceInterface::fields
File
- modules/
commerce/ src/ Plugin/ migrate/ source/ commerce1/ Profile.php, line 55
Class
- Profile
- Drupal 7 commerce_customer_profile source from database.
Namespace
Drupal\commerce_migrate_commerce\Plugin\migrate\source\commerce1Code
public function fields() {
return [
'profile_id' => $this
->t('Profile ID'),
'type' => $this
->t('Type'),
'uid' => $this
->t('Owner'),
'status' => $this
->t('Status'),
'created' => $this
->t('Created timestamp'),
'changed' => $this
->t('Modified timestamp'),
'data' => $this
->t('Data blob'),
'cad_type' => $this
->t('Type, if matching entry in defaults table'),
'revision_id' => $this
->t('The primary identifier for this version.'),
'revision_uid' => $this
->t('The primary identifier for this revision.'),
'log' => $this
->t('Revision Log message'),
'revision_timestamp' => $this
->t('Revision timestamp'),
'revision_data' => $this
->t('The revision data'),
];
}