You are here

public function MerciLocation::fields in MERCI (Manage Equipment Reservations, Checkout and Inventory) 8.2

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/merci_migration/src/Plugin/migrate/source/d7/MerciLocation.php, line 75

Class

MerciLocation
Drupal 7 node source from database.

Namespace

Drupal\merci_migration\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'id' => $this
      ->t('Row ID'),
    'name' => $this
      ->t('Name of variable'),
    'value' => $this
      ->t('Original value from database'),
    'open_hours' => $this
      ->t('Open Hours'),
  ];
  return $fields;
}