Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vladdancer/184dcf31c19888bb4f3728490cc94cbe to your computer and use it in GitHub Desktop.
Save vladdancer/184dcf31c19888bb4f3728490cc94cbe to your computer and use it in GitHub Desktop.
Map moderation_state field in migration #drupal8 #drupla9 #migrate
# https://www.drupal.org/project/workflow/issues/3016286
# https://www.drupal.org/project/drupal/issues/3157105#comment-13830538
process:
...
moderation_state:
plugin: default_value
default_value: published
process:
...
moderation_state:
plugin: static_map
source: state
default_value: draft
map:
'0': draft
'1': published
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment