Problem/Motivation
After updating to CE 3.x from an older version, Drupal's status report says
The Entity custom element display entity type needs to be installed.
Proposed resolution
Install entity type in an update hook.
As an aside
Things work fine without this; the actual entity definition used by running Drupal code is available from EntityTypeManager::getDefinition('entity_ce_display'), even if not from the EntityDefinitionUpdateManager / EntityLastInstalledSchemaRepository.
I still find this EntityDefinitionUpdateManager (or more accurate: EntityTypeListener / EntityLastInstalledSchemaRepository) code hard to understand. I'm guessing it's there to be able to override "additional actions that are done during entity/field installs" but isn't super important for actual operation of the site.
(Or maybe the EntityDefinitionUpdateManager is responsible for adding a cached version of the EntityTypeManager::getDefinition()? I don't know...)
I can't find a blog post or docs that really sheds light on this (and I tend to try and write those myself in that case, but that takes me days of digging through issues...)
So... this MR is just (modified) code found in a google search... and that'll have to be it.
I'll set it to review, but merge it whenever I merge other reviewed things.
Issue fork custom_elements-3463334
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 #2
roderikComment #4
roderikComment #5
useernamee commentedTested changes on one of our environments with this error in status report and it fixed the issue. RTBC.
Comment #6
useernamee commentedComment #8
roderik