Module Description
About This module aims to provide a way to automatically clean up blocks that may have been deleted, and result in "This block is broken or missing. You may be missing content or you might need to enable the original module." when you've placed those blocks on a Layout Builder based display for a node content type.

For example, let's say you have a "Promotion" custom block you've created and placed in the default template for your "Product" page. Now, you've deleted that block through the UI. All 100 of your "Product" nodes are now going to display the "Block is broken" error message. With this module, you should be able to quickly remedy the situation leveraging the batched cleanup process.

The module will examine a specified node or all nodes, and remove any broken blocks. It will also examine the default layout, and if any offending blocks are found, it also removes those.

Currently under development. Open to collaborators and suggestions.

How to use Through the UI
* Enable the module, assign "Use layout builder block sanitizer" permission to appropriate user role. * Go to /admin/structure/lbbs/sanitizer

Via drush
* Enable the module * Run drush help lbbssn to get details on running the command as needed.

Future possible updates * Scale up functionality to run a batch on all nodes on site of a selected type * UI for selecting specific nodes to run on * Add a cron task that can auto clean up nodes

Please open any issues with ideas, suggestions, etc.

Project Usage
489
Creation Date
Changed Date
Security Covered
Not Covered By Security Advisory
Version Available
DEV
Module Summary
This module aims to automatically clean up deleted blocks causing 'Block is broken' errors on Layout Builder based displays for node content types.
Data Name
layout_builder_block_sanitizer

OPENAI CHATBOT

OPENAI CHATBOT

13:37:24
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.