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

Command icon 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

AaronChristian created an issue. See original summary.

aaronchristian’s picture

john.oltman’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.