public function FieldInstancePerViewMode::fields in Drupal 10
Same name in this branch
- 10 core/modules/field/src/Plugin/migrate/source/d6/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d6\FieldInstancePerViewMode::fields()
 - 10 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 core/modules/field/src/Plugin/migrate/source/d7/FieldInstancePerViewMode.php \Drupal\field\Plugin\migrate\source\d7\FieldInstancePerViewMode::fields()
 - 9 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 FieldInstance::fields
File
- core/
modules/ field/ src/ Plugin/ migrate/ source/ d7/ FieldInstancePerViewMode.php, line 43  
Class
- FieldInstancePerViewMode
 - Drupal 7 field instance per view mode source class.
 
Namespace
Drupal\field\Plugin\migrate\source\d7Code
public function fields() {
  return array_merge(parent::fields(), [
    'view_mode' => $this
      ->t('The original machine name of the view mode.'),
    'formatter' => $this
      ->t('The formatter settings.'),
  ]);
}