Problem/Motivation
After installing, when you add a new block, or clone an existing one, the contextual links do not get replaced until your layout is saved, afterwards your contextual links appear as normal.
If you look in your network tab, it traces back to the checkAccess function. You might see something like an OutOfBoundsException: Invalid delta error appearing in your drupal logs as well.
If we additionally use $this->layoutTempstoreRepository we can get our contextual filters back. Snagged this solution from another thread over at the layout_builder_clone issue queue.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork layout_builder_block_clone-3295654
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 #3
aaronchristian commentedIf anyone needs the patch; https://git.drupalcode.org/project/layout_builder_block_clone/-/merge_re...
Comment #5
john.oltman commented