function 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
2 calls to FieldInstance::fields()
- FieldInstancePerViewMode::fields in core/
modules/ field/ src/ Plugin/ migrate/ source/ d7/ FieldInstancePerViewMode.php - Returns available fields on the source.
- ViewMode::fields in core/
modules/ field/ src/ Plugin/ migrate/ source/ d7/ ViewMode.php - Returns available fields on the source.
2 methods override FieldInstance::fields()
- FieldInstancePerViewMode::fields in core/
modules/ field/ src/ Plugin/ migrate/ source/ d7/ FieldInstancePerViewMode.php - Returns available fields on the source.
- ViewMode::fields in core/
modules/ field/ src/ Plugin/ migrate/ source/ d7/ ViewMode.php - Returns available fields on the source.
File
-
core/
modules/ field/ src/ Plugin/ migrate/ source/ d7/ FieldInstance.php, line 117
Class
- FieldInstance
- Drupal 7 field instances source from database.
Namespace
Drupal\field\Plugin\migrate\source\d7Code
public function fields() {
return [
'id' => $this->t('The field instance ID.'),
'field_id' => $this->t('The field ID.'),
'field_name' => $this->t('The field name.'),
'entity_type' => $this->t('The entity type.'),
'bundle' => $this->t('The entity bundle.'),
'data' => $this->t('The field instance data.'),
'deleted' => $this->t('Deleted'),
'type' => $this->t('The field type'),
'instances' => $this->t('The field instances.'),
'field_definition' => $this->t('The field definition.'),
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.