- 🇮🇳India shiks
If someone is still stuck with synching the block content , then https://www.drupal.org/project/structure_sync → module is really something to consider.
Along with block syncing (which also consider synching the UUID), it also solved the problems of menu, taxonomy synching.
- First commit to issue fork.
- Merge request !5667Issue #2906919: Handled missing block content entities. → (Open) created by ankithashetty
- 🇦🇺Australia acbramley
I've rebased the MR and refactored a lot of the new code particularly around constructors/DI as well as return and param types.
However, I am unable to get this working with manual testing.
First I tried via enabling a module with a block in the module's config/install folder. With a breakpoint in ConfigImporter::processMissingContent I never hit the breakpoint. Does this event fire for config import via a module's config/install? If not then that's going to be a big issue with the implementation.
However, I can get a breakpoint on
drush cim
, but when$this->configManager->findMissingContentDependencies()
is called it doesn't find any missing content. Is that because it's reading active storage?In both scenarios I just get the default message from the Broken plugin, not from the BlockContentBlock plugin.
- 🇦🇺Australia acbramley
Further tested by manually adding the UUID to the state key:
1. The new route should be an admin route (fixed
2. The add block form still has the "Save and configure" button - that doesn't make sense in this context as we're adding a block_content entity to resolve a dependency issue in an existing block plugin.
3. #111 still needs resolving.
4. The entry in block_content_missing_entities isn't cleared once I've saved the new block_content entity. Not sure if this is a symptom of me adding it manually or not.