You are here

public function Quantity::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/Quantity.php, line 66

Class

Quantity
Log quantity source from database.

Namespace

Drupal\farm_migrate\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'id' => $this
      ->t('The quantity item ID.'),
    'measure' => $this
      ->t('The quantity measure.'),
    'value_numerator' => $this
      ->t('The quantity value numerator.'),
    'value_denominator' => $this
      ->t('The quantity value denominator.'),
    'units' => $this
      ->t('The quantity units.'),
    'label' => $this
      ->t('The quantity label.'),
    'uid' => $this
      ->t('The user ID that created the quantity.'),
  ];
  return $fields;
}