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 creating a new custom breadcrumb, the available tokens are not set after selecting the type of bundle, entity type, or entity bundle.
Steps to reproduce
Create a new custom breadcrumb,
- breadcrumb type: content entity.
- entity type: content.
- entity bundle: article.
The node tokens are not available.
You have to put test text in the path and title, and save the form, then the node tokens are there.
Proposed resolution
See if we can populate the available tokens via ajax once the entity type is selected.
Remaining tasks
Fix it.
Comment | File | Size | Author |
---|---|---|---|
#3 | 3221780-3.patch | 1.78 KB | dev22.addweb |
Comments
Comment #2
tonytheferg CreditAttribution: tonytheferg commentedMaybe we could get
$user_input = $form_state->getUserInput();
from theentityType
form.Comment #3
dev22.addweb CreditAttribution: dev22.addweb at AddWeb Solution Pvt. Ltd. commentedHello
I have uploaded the patch to populate available tokens. Please review.
Thanks
Comment #4
dev22.addweb CreditAttribution: dev22.addweb at AddWeb Solution Pvt. Ltd. commentedComment #5
lamp5Patch looks ok, I will test ASAP or maybe @paulocs has a free slots to reviews&tests?
Comment #7
paulocsPatch looks good.
I fixed Code Standard problems on commit.
Thanks!