You are here

field_template_action.yml in Config Actions 8

tests/modules/test_config_actions/config/actions/field_template_action.yml

File

tests/modules/test_config_actions/config/actions/field_template_action.yml
View source
  1. # this contains any global variables that are available to any template
  2. replace:
  3. "@field_name@": "myproject_image"
  4. # Here are some sample actions
  5. actions:
  6. # *****
  7. # Example of "template" plugin
  8. # *****
  9. # Replace any tokens in a template to create a new config item
  10. field_storage:
  11. # name of yml file in config/templates folder
  12. source: "field.storage.node.image.yml"
  13. dest: "field.storage.node.@field_name@"
  14. field_instance:
  15. source: "field.field.node.image.yml"
  16. dest: "field.field.node.@bundle@.@field_name@"
  17. actions:
  18. article:
  19. replace:
  20. "@bundle@": article
  21. page:
  22. replace:
  23. "@bundle@": page