public function Agreement::fields in Agreement 3.0.x
Same name in this branch
- 3.0.x src/Plugin/migrate/source/Agreement.php \Drupal\agreement\Plugin\migrate\source\Agreement::fields()
- 3.0.x src/Plugin/migrate/destination/Agreement.php \Drupal\agreement\Plugin\migrate\destination\Agreement::fields()
Same name and namespace in other branches
- 8.2 src/Plugin/migrate/source/Agreement.php \Drupal\agreement\Plugin\migrate\source\Agreement::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
1 call to Agreement::fields()
- Agreement::query in src/
Plugin/ migrate/ source/ Agreement.php
File
- src/
Plugin/ migrate/ source/ Agreement.php, line 27
Class
- Agreement
- Agreement migrate source plugin.
Namespace
Drupal\agreement\Plugin\migrate\sourceCode
public function fields() {
$fields = [
'id' => $this
->t('Unique Identifier'),
'uid' => $this
->t('User Identifier'),
'sid' => $this
->t('Session Identifier'),
'agreed' => $this
->t('Agreed?'),
'agreed_date' => $this
->t('Agreement timestamp'),
];
if ($this
->needsAgreementType()) {
$fields['type'] = $this
->t('Agreement type');
}
return $fields;
}