You are here

public function FieldInstancePerFormDisplay::fields in Zircon Profile 8

Same name in this branch
  1. 8 core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerFormDisplay.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerFormDisplay::fields()
  2. 8 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerFormDisplay.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerFormDisplay::fields()
Same name and namespace in other branches
  1. 8.0 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerFormDisplay.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerFormDisplay::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

core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerFormDisplay.php, line 55
Contains \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerFormDisplay.

Class

FieldInstancePerFormDisplay
The field instance per form display source class.

Namespace

Drupal\field\Plugin\migrate\source\d7

Code

public function fields() {
  return array(
    'field_name' => $this
      ->t('The machine name of field.'),
    'bundle' => $this
      ->t('Content type where this field is used.'),
    'data' => $this
      ->t('Field configuration data.'),
    'entity_type' => $this
      ->t('The entity type.'),
  );
}