You are here

public function MetatagFieldInstance::fields in Metatag 8

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/d7/MetatagFieldInstance.php, line 95

Class

MetatagFieldInstance
Drupal 7 Metatag field instances.

Namespace

Drupal\metatag\Plugin\migrate\source\d7

Code

public function fields() {
  return [
    'entity_type' => $this
      ->t('Entity type'),
    'bundle' => $this
      ->t('Bundle'),
  ];
}