public function EntityLegalDocument::fields in Entity Legal 3.0.x
Same name and namespace in other branches
- 8.2 src/Plugin/migrate/source/EntityLegalDocument.php \Drupal\entity_legal\Plugin\migrate\source\EntityLegalDocument::fields()
- 4.0.x src/Plugin/migrate/source/EntityLegalDocument.php \Drupal\entity_legal\Plugin\migrate\source\EntityLegalDocument::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/ EntityLegalDocument.php, line 27
Class
- EntityLegalDocument
- Drupal entity legal document migration source plugin.
Namespace
Drupal\entity_legal\Plugin\migrate\sourceCode
public function fields() {
return [
'name' => $this
->t('The legal document ID.'),
'label' => $this
->t('The human-readable label of the legal document.'),
'require_signup' => $this
->t('Require new users to accept this document on signup.'),
'require_existing' => $this
->t('Require existing users to accept this document.'),
'settings' => $this
->t('An array of additional data related to the legal document.'),
];
}