Adds taxonomy terms (e.g. tags) to a post for each of the values found in one or more
fields from the remote record.
Located at culturehosts-importer/src/Service/Tasks/Fields_To_Term_Names.php
| Methods |
public
|
__construct(
string|string[] $source_fields,
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
|
| $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
Overridden by
|
#
|