Example content¶
We use the Default Content module to manage example content. Such content is typically used when setting up development and testing environments.
All actual example content is stored with the DPL Example Content module.
Usage of the module in this project is derived from the official documentation.
Howtos¶
Add additional default content¶
- Create the default content
- Determine the UUIDs for the entities which should be exported as default content. The easiest way to do this is to enable the Devel module, view the entity and go to the Devel tab.
- Add the UUID (s) (and if necessary entity types) to the
dpl_example_content.info.yml
file - Export the entities by running
drush default-content:export-module dpl_example_content
- Commit the new files under
web/modules/custom/dpl_example_content
Update existing default content¶
- Update existing content
- Export the entities by running
drush default-content:export-module dpl_example_content
- Remove references to and files from UUIDs which are no longer relevant.
- Commit updated files under
web/modules/custom/dpl_example_content