public function LegalConditions::fields in Legal 8
Same name and namespace in other branches
- 2.0.x src/Plugin/migrate/source/d7/LegalConditions.php \Drupal\legal\Plugin\migrate\source\d7\LegalConditions::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/ LegalConditions.php, line 33
Class
- LegalConditions
- Drupal 7 source plugin for Legal T&Cs.
Namespace
Drupal\legal\Plugin\migrate\source\d7Code
public function fields() {
$fields = [
'tc_id' => $this
->t('T&C ID'),
'version' => $this
->t('Version'),
'revision' => $this
->t('Revision'),
'language' => $this
->t('Language'),
'conditions' => $this
->t('Terms & Conditions'),
'date' => $this
->t('Date'),
'extras' => $this
->t('Extras'),
'changes' => $this
->t('Changes'),
'format' => $this
->t('Format'),
];
return $fields;
}