public function ProfileBilling::fields in Commerce Migrate 8.2
Same name and namespace in other branches
- 3.1.x modules/ubercart/src/Plugin/migrate/source/ProfileBilling.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ProfileBilling::fields()
- 3.0.x modules/ubercart/src/Plugin/migrate/source/ProfileBilling.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\ProfileBilling::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/
ubercart/ src/ Plugin/ migrate/ source/ ProfileBilling.php, line 45
Class
- ProfileBilling
- Ubercart billing profile source.
Namespace
Drupal\commerce_migrate_ubercart\Plugin\migrate\sourceCode
public function fields() {
$fields = [
'order_id' => $this
->t('Order ID'),
'uid' => $this
->t('User ID of order'),
'order_status' => $this
->t('Order status'),
'order_total' => $this
->t('Order total'),
'product_count' => $this
->t('Product count'),
'primary_email' => $this
->t('Email associated with order'),
'delivery_first_name' => $this
->t('Delivery first name'),
'delivery_last_name' => $this
->t('Delivery last name'),
'delivery_phone' => $this
->t('Delivery phone name'),
'delivery_company' => $this
->t('Delivery company name'),
'delivery_street1' => $this
->t('Delivery street address line 1'),
'delivery_street2' => $this
->t('Delivery street address line 2'),
'delivery_city' => $this
->t('Delivery city'),
'delivery_zone' => $this
->t('Delivery State'),
'delivery_postal_code' => $this
->t('delivery postal code'),
'delivery_country' => $this
->t('delivery country'),
'billing_first_name' => $this
->t('Billing first name'),
'billing_last_name' => $this
->t('Billing last name'),
'billing_phone' => $this
->t('Billing phone name'),
'billing_company' => $this
->t('Billing company name'),
'billing_street1' => $this
->t('Billing street address line 1'),
'billing_street2' => $this
->t('Billing street address line 2'),
'billing_city' => $this
->t('Billing city'),
'billing_zone' => $this
->t('Billing State'),
'billing_postal_code' => $this
->t('Billing postal code'),
'billing_country' => $this
->t('Billing country'),
'payment_method' => $this
->t('Payment method'),
'data' => $this
->t('Order attributes'),
'created' => $this
->t('Date/time of order creation'),
'modified' => $this
->t('Date/time of last order modification'),
'host' => $this
->t('IP address of customer'),
'currency' => $this
->t('Currency'),
'status' => $this
->t('Profile active.'),
'is_default' => $this
->t('Profile default.'),
];
return $fields;
}