- 🇩🇰Denmark ressa Copenhagen
Thanks for updating the documentation, though I think the current example is misleading:
* process: * field_foo: * plugin: entity_value * source: field_noderef/0/target_id * entity_type: node * langcode: es
From that example, I get the impression I can simply add a language code, like
es
,en
orda
. But then I got this error:[error] SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'langcode' cannot be null: UPDATE "node" SET "vid"=:db_update_placeholder_0, "type"=:db_update_placeholder_1, "uuid"=:db_update_placeholder_2, "langcode"=:db_update_placeholder_3
I needed instead to set the hardcoded value with
default_value
like this:langcode: plugin: default_value default_value: da
So I believe this assumption is wrong, since it looks to me like it needs a reference:
I would say set it to an actual language code so it's clear.
Should we reopen, or fix in a new issue?