You are here

public function LibraryItem::fields in Library 8

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

src/Plugin/migrate/source/d6/LibraryItem.php, line 36

Class

LibraryItem
Drupal 6 library source.

Namespace

Drupal\library\Plugin\migrate\source\d6

Code

public function fields() {
  return [
    'id' => $this
      ->t('Library item ID'),
    'barcode' => $this
      ->t('Barcode'),
    'nid' => $this
      ->t('Node ID'),
    'in_circulation' => $this
      ->t('Circulation status'),
    'library_status' => $this
      ->t('Item status in library'),
    'notes' => $this
      ->t('Notes on item'),
    'created' => $this
      ->t('Created'),
  ];
}