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

Command icon 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

Deciphered created an issue. See original summary.

  • Deciphered committed c2cf221 on 1.0.x
    Issue #3211751 by Deciphered: Missing EntityViewDisplays
    
deciphered’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.