You are here

public function Recipe61::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/recipe61/Recipe61.php, line 83

Class

Recipe61
Drupal 6 recipe source from database.

Namespace

Drupal\recipe\Plugin\migrate\source\recipe61

Code

public function fields() {
  return [
    'nid' => $this
      ->t('Recipe node ID'),
    'tnid' => $this
      ->t('The translation node ID'),
    'source' => $this
      ->t('Recipe source'),
    'yield' => $this
      ->t('Recipe yield amount'),
    'yield_unit' => $this
      ->t('Units of the recipe yield'),
    'description' => $this
      ->t('Recipe description'),
    'instructions' => $this
      ->t('Recipe instructions'),
    'notes' => $this
      ->t('Recipe notes'),
    'preptime' => $this
      ->t('Recipe preparation time'),
    'cooktime' => $this
      ->t('Recipe cook time'),
    'ingredients' => $this
      ->t('Recipe ingredients, measures, and notes'),
    'language' => $this
      ->t('Node language'),
  ];
}