- Issue created by @scambler
- Status changed to Needs review
about 2 months ago 8:04pm 16 July 2024
Hello, I am wondering why the DrupalConstant mapping plugin does not allow entity reference fields? I have a few use cases when creating a node from salesforce, I want to assign the same referenced entities to every node. I am going to extend the plugin to allow this, but I wanted to understand why this is not an option, as I think it adds value to the module, and in my tests you don't need to change any code when saving the value.
Removing these lines:
// Entity reference fields are handled elsewhere.
if ($this->instanceOfEntityReference($instance)) {
continue;
}
Am I missing something? Will removing this and adding constants to ER fields break something?
EDIT:
I've realised it's a private method, so I cannot easily extend it.
Needs review
5.1
salesforce_mapping.module