Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have created two new mapping plugins to cover some use cases we have.
The first allows mapping of constant values to drupal entity properties. It is very similar to the existing Salesforce constant mapping.
The second allows for mapping between strings in salesforce and taxonomy reference fields in drupal. We needed to map an existing select list to terms. The plugin queries terms based on the name and creates a term if it can't find one.
Comment | File | Size | Author |
---|---|---|---|
#4 | salesforce-constant-and-string-term-mapping-plugins-3060288-4.patch | 9.53 KB | kbentham |
#2 | salesforce-constant-and-string-term-mapping-plugins-3060288-2.patch | 9.45 KB | kbentham |
Comments
Comment #2
kbentham CreditAttribution: kbentham at Palantir.net commentedComment #3
AaronBaumanThis is great, thanks for the patch.
The drupal constant plugin looks good.
Just one suggestion on the taxonomy term plugin: let's make sure to limit the loadByProperties query by vocab from field settings
Comment #4
kbentham CreditAttribution: kbentham at Palantir.net commentedI have updated the taxonomy query to include the vocabs. Thanks for the feedback!
Comment #6
AaronBaumanCommitted, thanks again for the patch!