public function FieldCollectionType::fields in Paragraphs 8
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/ FieldCollectionType.php, line 72
Class
- FieldCollectionType
- Field Collection Type source plugin.
Namespace
Drupal\paragraphs\Plugin\migrate\source\d7Code
public function fields() {
return [
'field_name' => $this
->t('Original field collection bundle/field_name'),
'bundle' => $this
->t('Paragraph type machine name'),
'name' => $this
->t('Paragraph type label'),
'description' => $this
->t('Paragraph type description'),
];
}