You are here

fancy_node.content.yml in YAML Content 8

tests/content/fancy_node.content.yml

File

tests/content/fancy_node.content.yml
View source
  1. - entity: "taxonomy_term"
  2. vid: "tags"
  3. name: "Generated content"
  4. - entity: "node"
  5. type: "article"
  6. title: "Basic Article"
  7. status: 1
  8. body:
  9. - format: "full_html"
  10. value: |
  11. <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed vobis
  12. voluptatum perceptarum recordatio vitam beatam facit, et quidem corpore
  13. perceptarum. Tum Quintus: Est plane, Piso, ut dicis, inquit.</p>
  14. <p>Primum cur ista res digna odio est, nisi quod est turpis? Duo Reges:
  15. constructio interrete. Rhetorice igitur, inquam, nos mavis quam
  16. dialectice disputare?</p>
  17. field_tags:
  18. # Attach existing term.
  19. - '#process':
  20. callback: 'reference'
  21. args:
  22. - 'taxonomy_term'
  23. - vid: 'tags'
  24. name: 'Generated content'
  25. # Missing tag that will not be attached.
  26. - '#process':
  27. callback: 'reference'
  28. args:
  29. - 'taxonomy_term'
  30. - vid: 'tags'
  31. name: 'Imported demo content'