Translates fields containing record IDs to the related record names and saves them as terms.
Especially useful for the place_ids and similar fields.
Located at culturehosts-importer/src/Service/Tasks/Related_Records_To_Term_Names.php
| Methods |
public
|
__construct(
string|string[] $source_fields,
string $related_endpoint,
string $taxonomy,
boolean $create_if_missing = true,
array|Formatter|callable $formatters = [],
)
Set the source fields and destination taxonomy for this task.
Set the source fields and destination taxonomy for this task.
Parameters
| $source_fields |
Field names as found in the CultureHosts record
|
| $related_endpoint |
The CultureHosts endpoint the IDs in the field refer to.
|
| $taxonomy |
The destination taxonomy
|
| $create_if_missing |
Whether to create a taxonomy term if no existing matching term is found
|
| $formatters |
The formatters to pass the field values through
|
Overrides
|
#
|