public function LegalAccepted::fields in Legal 2.0.x
Same name and namespace in other branches
- 8 src/Plugin/migrate/source/d7/LegalAccepted.php \Drupal\legal\Plugin\migrate\source\d7\LegalAccepted::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
- src/
Plugin/ migrate/ source/ d7/ LegalAccepted.php, line 32
Class
- LegalAccepted
- Drupal 7 source plugin for Legal T&Cs.
Namespace
Drupal\legal\Plugin\migrate\source\d7Code
public function fields() {
$fields = [
'legal_id' => $this
->t('Legal ID'),
'version' => $this
->t('Version'),
'revision' => $this
->t('Revision'),
'language' => $this
->t('Language'),
'uid' => $this
->t('User ID'),
'accepted' => $this
->t('Accepted Date'),
'tc_id' => $this
->t('T&C ID'),
];
return $fields;
}