Score:0

As part of an "update" migration, how do I access an existing entity field in prepareRow()?

us flag

I know I can access the existing entity id through $row->getIdMap()['destid1'], then load the entity via entity_type.manager service, and then access the field. But is there a more direct way of accessing the entity through the migration API?

The closest thing I could find is the entity_value plugin, but it's not clear how I could provide the destid1 value as the source to the plugin.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.