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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tonytheferg created an issue. See original summary.

tonytheferg’s picture

Maybe we could get $user_input = $form_state->getUserInput(); from the entityType form.

dev22.addweb’s picture

Hello

I have uploaded the patch to populate available tokens. Please review.

Thanks

dev22.addweb’s picture

Status: Active » Needs review
lamp5’s picture

Patch looks ok, I will test ASAP or maybe @paulocs has a free slots to reviews&tests?

paulocs’s picture

Status: Needs review » Fixed

Patch looks good.
I fixed Code Standard problems on commit.

Thanks!

Status: Fixed » Closed (fixed)

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