Problem/Motivation
When only adding the breadcrumb block through layout builder the structured data isn't added to the head.
This is because Layout builder doesn't trigger the alter hook in BlockViewBuilder.php
Steps to reproduce
Add the breadcrumb block through layout builder only.
Proposed resolution
Add the structured data through a different hook that does get triggered when adding the breadcrumb block through layout builder.
Issue fork easy_breadcrumb-3292422
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
nielsaers commentedComment #4
greg boggsI've created an issue for this in core:
https://www.drupal.org/project/drupal/issues/3292520
Given that core moves at a careful pace sometimes, I'll go ahead and merge the workaround for us now.
Comment #6
nielsaers commentedAah yeah, core can take a while sometimes. Thanks for the quick merging.
Comment #7
greg boggs