public function ViewMode::fields in Zircon Profile 8
Same name in this branch
- 8 core/modules/node/src/Plugin/migrate/source/d6/ViewMode.php \Drupal\node\Plugin\migrate\source\d6\ViewMode::fields()
- 8 core/modules/field/src/Plugin/migrate/source/d7/ViewMode.php \Drupal\field\Plugin\migrate\source\d7\ViewMode::fields()
Same name and namespace in other branches
- 8.0 core/modules/field/src/Plugin/migrate/source/d7/ViewMode.php \Drupal\field\Plugin\migrate\source\d7\ViewMode::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/ ViewMode.php, line 41 - Contains \Drupal\field\Plugin\migrate\source\d7\ViewMode.
Class
- ViewMode
- Plugin annotation @MigrateSource( id = "d7_view_mode" )
Namespace
Drupal\field\Plugin\migrate\source\d7Code
public function fields() {
return [
'view_mode' => $this
->t('The view mode ID.'),
'entity_type' => $this
->t('The entity type ID.'),
];
}