You are here

public function EmptySource::fields in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/src/Plugin/migrate/source/EmptySource.php \Drupal\migrate\Plugin\migrate\source\EmptySource::fields()

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

core/modules/migrate/src/Plugin/migrate/source/EmptySource.php, line 24
Contains \Drupal\migrate\Plugin\migrate\source\EmptySource.

Class

EmptySource
Source returning an empty row.

Namespace

Drupal\migrate\Plugin\migrate\source

Code

public function fields() {
  return array(
    'id' => t('ID'),
  );
}