Default Content for D8
Categories
Component ID
2578773
Component name
Default Content for D8
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
115606
Component created
Component changed
Component body
Overview
Default content gives your module and install profile a way to ship default content as well as configuration.
Powered by core's serialization, rest and hal modules.
Features
Supports entity-references between content.
Supports files if you have File entity
Easily export your content and its dependencies to yml using drush commands.
How does it work
How does it work
Enable default content first. Any module that requires default content can put hal+json versions of the entities inside content/{entity_type} folders.
For example see default_content_test which has
- modules/default_content_test/content
- modules/default_content_test/content/node
- modules/default_content_test/content/node/imported.json
- modules/default_content_test/content/taxonomy_term
- modules/default_content_test/content/taxonomy_term/tag.json
Requirements
Core only.
Known problems
Please use the issue queue to file any issues you encounter.
Credits
Written by @larowlan in response to Snowman session by @eaton and @yoroy
Similar projects
Looking for a D7 solution? Try here
