Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
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 CreditAttribution: nielsaers at Dropsolid for Dropsolid 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 CreditAttribution: nielsaers at Dropsolid for Dropsolid commentedAah yeah, core can take a while sometimes. Thanks for the quick merging.
Comment #7
Greg Boggs