public function FieldInstancePerViewMode::fields in Zircon Profile 8
Same name in this branch
- 8 core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode::fields()
- 8 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerViewMode::fields()
Same name and namespace in other branches
- 8.0 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerViewMode::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/ FieldInstancePerViewMode.php, line 50 
- Contains \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerViewMode.
Class
- FieldInstancePerViewMode
- The field instance per view mode source class.
Namespace
Drupal\field\Plugin\migrate\source\d7Code
public function fields() {
  return array(
    'entity_type' => $this
      ->t('The entity type ID.'),
    'bundle' => $this
      ->t('The bundle ID.'),
    'field_name' => $this
      ->t('Machine name of the field.'),
    'view_mode' => $this
      ->t('The original machine name of the view mode.'),
    'label' => $this
      ->t('The display label of the field.'),
    'type' => $this
      ->t('The formatter ID.'),
    'settings' => $this
      ->t('Array of formatter-specific settings.'),
    'module' => $this
      ->t('The module providing the formatter.'),
    'weight' => $this
      ->t('Display weight of the field.'),
  );
}