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.ymlView source
- # this contains any global variables that are available to any template
- replace:
- "@field_name@": "myproject_image"
-
- # Here are some sample actions
- actions:
-
- # *****
- # Example of "template" plugin
- # *****
-
- # Replace any tokens in a template to create a new config item
- field_storage:
- # name of yml file in config/templates folder
- source: "field.storage.node.image.yml"
- dest: "field.storage.node.@field_name@"
-
- field_instance:
- source: "field.field.node.image.yml"
- dest: "field.field.node.@bundle@.@field_name@"
- actions:
- article:
- replace:
- "@bundle@": article
- page:
- replace:
- "@bundle@": page