You are here

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

Class

MerciResource
Drupal 7 node source from database.

Namespace

Drupal\merci_migration\Plugin\migrate\source\d7

Code

public function fields() {
  $fields = [
    'nid' => $this
      ->t('Node ID'),
    'type' => $this
      ->t('Type'),
    'title' => $this
      ->t('Title'),
    'node_uid' => $this
      ->t('Node authored by (uid)'),
    'revision_uid' => $this
      ->t('Revision authored by (uid)'),
    'created' => $this
      ->t('Created timestamp'),
    'changed' => $this
      ->t('Modified timestamp'),
    'status' => $this
      ->t('Published'),
    'promote' => $this
      ->t('Promoted to front page'),
    'sticky' => $this
      ->t('Sticky at top of lists'),
    'revision' => $this
      ->t('Create new revision'),
    'language' => $this
      ->t('Language (fr, en, ...)'),
    'tnid' => $this
      ->t('The translation set id for this node'),
    'timestamp' => $this
      ->t('The timestamp the latest revision of this node was created.'),
  ];
  return $fields;
}