You are here

public function D7FlagForList::fields in Flag Lists 8

Same name and namespace in other branches
  1. 4.0.x src/Plugin/migrate/source/D7FlagForList.php \Drupal\flag_lists\Plugin\migrate\source\D7FlagForList::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

src/Plugin/migrate/source/D7FlagForList.php, line 43

Class

D7FlagForList
Minimalistic example for a SqlBase source plugin.

Namespace

Drupal\flag_lists\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'fid' => $this
      ->t('Flag List #'),
    'pfid' => $this
      ->t('Parent flag id #'),
    'uid' => $this
      ->t('Owner'),
    'entity_type' => $this
      ->t('Entity type'),
    'name' => $this
      ->t('Machine name of this flag list'),
    'label' => $this
      ->t('Label fof flag'),
    'title' => $this
      ->t('Name of flag template'),
    'option' => $this
      ->t('Serielized info'),
  ];
  return $fields;
}