You are here

public function D7FlagListsFlagging::fields in Flag Lists 4.0.x

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/D7FlagListsFlagging.php, line 44

Class

D7FlagListsFlagging
Transfer the D7 Flag Lists Flaggings to the D8 Flag module flaggings.

Namespace

Drupal\flag_lists\Plugin\migrate\source

Code

public function fields() {
  $fields = [
    'fcid' => $this
      ->t('Flag content id'),
    'fid' => $this
      ->t('Flag lists id #'),
    'entity_type' => $this
      ->t('Entity type'),
    'entity_id' => $this
      ->t('Entity #'),
    'uid' => $this
      ->t('Owner'),
    'sid' => $this
      ->t('Sid'),
    'timestamp' => $this
      ->t('Timestamp'),
    'global' => $this
      ->t('Global'),
  ];
  return $fields;
}