Feeds integration¶
The Feeds module imports content from sources such as CSV, JSON, or XML. Name exposes each name component as its own target so you can map columns or paths to structured parts of the field.
Requirements¶
Enable the Name and Feeds modules. Feeds is optional; enable it only if you import into name fields.
What Name provides¶
Class: Drupal\name\Feeds\Target\NameTarget
Feeds target ID: name (annotation: @FeedsTarget)
prepareTarget() registers one Feeds property for each key returned by _name_component_keys():
titlegivenmiddlefamilygenerationalcredentials
Site builder notes¶
- In your Feed type mapper, select the name field, then map a source column (or path) to each component you need. Unused components can stay empty.
- This matches how the field stores data internally, so imports stay consistent with manual entry and other APIs.