Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
We have test failures. Our first D8 core breakage. http://qa.drupal.org/pifr/test/139719.
I think we should require Examples to pass cleanly with any commit.
Comments
Comment #1
Mile23Well there's that whole 'moving target' thing... It seems as though the 8.x branch should maybe just be 8.x-dev-dev, as opposed to 7.x which is just 7.x-dev. :-)
What are your thoughts on making a stable 7.x branch and a dev branch for 8.x, so people understand the distinction?
Comment #2
rfayI've never thought of having a stable release, and am not sure what purpose it serves. Mostly I don't want people installing this on live servers. However, your point has validity.
That wouldn't get us out of the trouble of having to chase head with 8.x though. It's just part of the game. Examples is typically the first contrib to work with core, and it serves great purpose there. But it's a pile of pain. I hope we can do it.
Comment #3
rfayComment #4
rfaySpinning off Contextual links into its own #1310536: Contextual Links Example completely broken (Edit object doesn't work in block)
Both the remaining issues (Render and Theming) are a result of #1283892: Let Render API fail in a tale-telling way on invalid $element as far as I can tell.
You get something like this when visiting any of the relevant pages:
User error: "0" is an invalid render array key in element_children() (line 6166 of /home/rfay/workspace/d8git/includes/common.inc).
Comment #5
tim.plunkettFrom render_example.module:
From drupal_render():
So, just because a theme function is responsible for the children, doesn't mean the children can't be renderable arrays.
I'm kinda stuck on how to best update this example without it starting to look like the following one, with two children containing #markup.
But I'm not sure that the intent of this example is so wrong that it should just be removed.
Comment #6
rfayThanks so much for your attention to this, @tim.plunkett
As we were discussing last night, we don't have to "fix" any example. Rather, we just need to find ways to demonstrate crucial concepts that people need. So if this is a bogus demonstration, let's replace it with something better. It does not even have to bear relationship to what we have here.
Comment #7
rfay8.x-1.x branch has started over, so we'll call this fixed.