Install
Works with Drupal: ^11.2 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
49.26 KB
MD5: ff4f3d233b75912c465d1450d5a1a61a
SHA-1: 5a55c6d6a5495d91cbecc688061e9cbdb7f7bd73
SHA-256: fdc5eb1bc5c785f63c3b982abc780df2732badbd6505ce7c95c4503f1b06958e
Download zip
77.64 KB
MD5: aa90a7431f8b9dfb92c223fa28e6689d
SHA-1: 01fba0b8650c057597c85c45a4db77f1ec83270f
SHA-256: 4bc8c5e23f809431be75a9df4e0e86a63336536d01c640fe762f617604fd5b8a
Release notes
2.0.2 is a bug-fix release for the 2.0.x branch (Drupal 11.2+ and 12). It makes the inline block usage repair complete and its report accurate, and shows the Copy link right after the module is enabled.
Fixed
- The repair now handles layouts that store only
block_revision_id. Layouts saved by older releases often reference inline blocks by revision only. The post-update anddrush layout-builder-block-copy:repair-usageskipped those blocks, so they could be left without usage and never cleaned up when their layout was deleted. Those blocks were also missed when checking owners. They are now recorded, re-owned and checked like the others. - Each block is counted once. The summary counted a block once for every layout using it, so a block shared by many layouts could be counted many times. Counts are now per block.
- The Copy link appears right after enabling the module, without a cache rebuild (also fixed in 1.1.0).
Improved
- The repair report separates three cases:
- blocks whose owner no longer uses them, while other layouts do;
- default-layout blocks owned by an override that also uses them (deleting that owner lets cron delete the block from the default layout);
- blocks shared by several layouts whose owner still uses them.
--reown-defaultsalso assigns a default-layout block to its display when an override shares it. The display is the safer owner, because every entity without an override renders the block. Blocks shared by two displays are left alone.drush layout-builder-block-copy:repair-usage -vlists the blocks that need review, with their recorded owner and the layouts using them.- README: the shipped tests expect stock Layout Builder; sites that patch core's
InlineBlockplugin may see unrelated test failures.
Upgrade
No database updates. Clear caches after updating (drush cr). To check existing sites, run drush layout-builder-block-copy:repair-usage --dry-run -v. Run it again without --dry-run to record the usage it found missing.