Closed (fixed)
Project:
Easy Breadcrumb
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2018 at 05:24 UTC
Updated:
11 May 2018 at 21:09 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
nickdickinsonwildeThe patch, simple, not must to say.
Specifically, ensures that it works with the Search API/hosted apache solr module.
Comment #3
greg boggsThanks Nick. Can I just say, I am disappointed with how difficult it is to implement getTitle().
How do I test this? Meaning, what does it take to generate a return that is a formattable markup object? Off topic but do you know if there's a core issue for get Title to return the same type of object?
Comment #4
nickdickinsonwildeAh you're right, I'll stop being lazy Greg... test coming up. I at least have an example in contrib on one project at least of how to make a FormattableMarkup object return there, so a good start.
It really does seem excessively difficult to be getting exactly what you need.
Comment #5
greg boggsFeel free to link me to the contrib, or just drop some code in that I can use for testing. I'm ok with a manual test. But, we've had *a lot* of trouble getting a page title. Like this one: https://www.drupal.org/project/drupal/issues/2960223. So, I want to make sure I know how to test each piece.
Comment #6
nickdickinsonwildeHere's a set of tests and an extra fix for getting the title string - not all render array's have #allowed_tags as a key.
To make it easier to test, I split getting the title string out of build() as a new function.
The test class probably should make use of a setUp() method instead of creating the breadcrumb stuff in each test method but works for now. At least locally... we'll see what the ci says.
Ended up getting busy this weekend, but got to it as I was cleaning up for my work week.
Comment #7
tim-dielsTested the latest patch, and works for me.
Comment #8
olivier.bouwman commentedI experienced the same error, patch #6 resolved it. Thank you!
Comment #10
greg boggsComment #11
greg boggs