You are here

public function Recipe72::fields in Recipe 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

src/Plugin/migrate/source/Recipe72.php, line 52

Class

Recipe72
Drupal 7 recipe source from database.

Namespace

Drupal\recipe\Plugin\migrate\source

Code

public function fields() {
  return [
    'nid' => $this
      ->t('Recipe node ID'),
    'tnid' => $this
      ->t('The translation node ID'),
    'yield' => $this
      ->t('Recipe yield amount'),
    'yield_unit' => $this
      ->t('Units of the recipe yield'),
    'language' => $this
      ->t('Node language'),
  ];
}