public function Asset::fields in farmOS 2.x
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
- modules/
core/ asset/ src/ Plugin/ migrate/ source/ d7/ Asset.php, line 37
Class
- Asset
- Asset source from database.
Namespace
Drupal\asset\Plugin\migrate\source\d7Code
public function fields() {
$fields = [
'id' => $this
->t('The asset ID'),
'name' => $this
->t('The asset name'),
'type' => $this
->t('The asset type'),
'uid' => $this
->t('The asset author ID'),
'created' => $this
->t('Timestamp when the asset was created'),
'changed' => $this
->t('Timestamp when the asset was last modified'),
'archived' => $this
->t('Timestamp when the asset was archived'),
];
return $fields;
}