public function Inventory::fields in farmOS 2.x
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/
core/ migrate/ src/ Plugin/ migrate/ source/ d7/ Inventory.php, line 57
Class
- Inventory
- Log inventory source from database.
Namespace
Drupal\farm_migrate\Plugin\migrate\source\d7Code
public function fields() {
$fields = [
'id' => $this
->t('The inventory item ID.'),
'value_numerator' => $this
->t('The inventory value numerator.'),
'value_denominator' => $this
->t('The inventory value denominator.'),
'inventory_asset' => $this
->t('The inventory asset.'),
'inventory_value_sign' => $this
->t('Thi sign of the inventory value. Used to determine increment or decrement.'),
'uid' => $this
->t('The user ID that created the inventory.'),
];
return $fields;
}