public function FieldInstance::fields in Zircon Profile 8
Same name in this branch
- 8 core/modules/field/src/Plugin/migrate/source/d6/FieldInstance.php \Drupal\field\Plugin\migrate\source\d6\FieldInstance::fields()
- 8 core/modules/field/src/Plugin/migrate/source/d7/FieldInstance.php \Drupal\field\Plugin\migrate\source\d7\FieldInstance::fields()
Same name and namespace in other branches
- 8.0 core/modules/field/src/Plugin/migrate/source/d7/FieldInstance.php \Drupal\field\Plugin\migrate\source\d7\FieldInstance::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/ FieldInstance.php, line 51 - Contains \Drupal\field\Plugin\migrate\source\d7\FieldInstance.
Class
- FieldInstance
- Drupal 7 field instances source from database.
Namespace
Drupal\field\Plugin\migrate\source\d7Code
public function fields() {
return array(
'field_name' => $this
->t('The machine name of field.'),
'entity_type' => $this
->t('The entity type.'),
'bundle' => $this
->t('The entity bundle.'),
'default_value' => $this
->t('Default value'),
'instance_settings' => $this
->t('Field instance settings.'),
'widget_settings' => $this
->t('Widget settings.'),
'display_settings' => $this
->t('Display settings.'),
);
}