You are here

public function D7FlaggingCollections::fields in Flag Lists 8

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

Class

D7FlaggingCollections
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 the related flag'),
    'title' => $this
      ->t('Name of flag list'),
    'option' => $this
      ->t('Serielized info'),
  ];
  return $fields;
}