- Issue created by @megachriz
Followup from 📌 D7 EFQ Finder to D8 Entity finder Needs work
The Entity Finder plugin allows you to lookup an existing content entity by searching for a specific value on a field. As of now, the plugin can only return the ID of the entity that was found.
It would be useful if the plugin would also be able to return the value of a field on the entity.
Before the Entity Finder plugin was finished, @hepabolu made a similar plugin that includes an option called "return_field".
https://github.com/hepabolu/feeds_tamper_lookup_entity
The idea is to port that option to the Tamper plugin "Entity Finder" and add test coverage for it.
The default option for the return field should be the entity ID field.
tamper()
method, make sure that the field value is returned if a return field is configured.When configuring an instance of the Entity Finder plugin, a new option called "Return field" appears.
None.
A new config key called "return_field" is added to the entity finder plugin.
Active
1.0
Code