public function Attribute::fields in Commerce Migrate 3.1.x
Same name and namespace in other branches
- 8.2 modules/ubercart/src/Plugin/migrate/source/Attribute.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Attribute::fields()
- 3.0.x modules/ubercart/src/Plugin/migrate/source/Attribute.php \Drupal\commerce_migrate_ubercart\Plugin\migrate\source\Attribute::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/ Attribute.php, line 27
Class
- Attribute
- Provides migration source for attributes.
Namespace
Drupal\commerce_migrate_ubercart\Plugin\migrate\sourceCode
public function fields() {
return [
'aid' => $this
->t('Attribute id'),
'name' => $this
->t('Name'),
'label' => $this
->t('Label'),
'ordering' => $this
->t('Attribute display order'),
'required' => $this
->t('Attribute field required'),
'display' => $this
->t('Display type'),
'description' => $this
->t('Attribute description'),
];
}