Problem/Motivation

When an embedded entity is deleted, or can't be edited, several things go wrong, spread across separate issues:

Proposed resolution

  1. #3402443: PHP error: Call to a member function id() on null: the edit route returns a 404 for an unknown entity, entity type or edit form, with a test.
  2. #3416512: Trying to edit embedded entities causes uncaught exception: build on that to fall back to the canonical link and support Paragraphs.
  3. #3066078: Allow customization of missing embed indicator returned by EntityEmbed filter: render the placeholder with a template, as core's media_embed filter does with media_embed_error.
  4. #3065054: Add permission to allow 'missing media' to be hidden from anonymous users: decide whether a permission is still needed once the placeholder can be overridden in a theme. If it is, existing sites must keep showing it to anonymous users.

Comments

dave reid created an issue.