Problem/Motivation
When a new Content entity is created, the default EntityViewDisplay is not created, resulting in missing schemas for the DruxtSchema module.
Steps to reproduce
- Clone and install https://github.com/druxt/demo-api.druxtjs.org
- Clone and install https://github.com/druxt/demo.druxtjs.org
- Edit frontend .env to point to local backend (http://demo-api-druxtjs-org.docker.amazee.io/)
- Edit frontend nuxt.config.js and remove components: true
- Run frontend, see error.
Proposed resolution
- hook_install to create missing EntityViewDisplays on Druxt module install
- hook to create missing EntityViewDisplays on Entity creation
Remaining tasks
Do the things.
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Issue fork druxt-3211751
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
deciphered