Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
block.module
Priority:
Normal
Category:
Task
Assigned:
Issue tags:
Reporter:
Created:
7 Jun 2013 at 02:24 UTC
Updated:
17 Nov 2014 at 17:23 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
sdboyer commentedand here's the patch.
Comment #3
tim.plunkettThe
$thisis going to be different. So the API docs need to be updated, and I'm going to guess menu_block_view_system_menu_block_alter() will cause errors here.I'm pretty tired of moving this back and forth, but I did like it here most, and if it helps SCOTCH I'm +1.
Comment #4
sdboyer commentedoh whoops, forgot to switch that reference to $this...think i caught all the others. i don't see why
menu_block_view_system_menu_block_alter()would be affected - it should look exactly the same to that code.which API docs? anything referencing
blockBuild()?yeah, we've yanked this stuff around a lot...sorry to do it again. i'm really hoping we can keep this one contained to this issue, uncontroversial, and just get it through.
Comment #8
tim.plunkettSorry, I meant if you WANTED to keep $this, to make it pass the entity, then you'd need to change the typehints and docs. Just switching the variable is easier :)
Comment #9
sdboyer commentedmaybe the bot will hate this less.
Comment #11
sdboyer commentedwell i got one failure, but the other six are baffling me. they seem to all be symptomatic of the same basic problem, that an id/title something isn't being set in quite the same way. i'll keep trying if i don't see movement here in a couple days, but someone with a bit more insight into this system would maybe have more of a clue.
Comment #12
sdboyer commentedblah, double-uploaded the main patch and not the interdiff. whoops.
Comment #13
sdboyer commentedOH. i bet it's because things like views mutate the configuration during
build()...so, have to get config after it's been called.Comment #15
sdboyer commenteddurrr, dur dur dur DURRRRRR
Comment #17
sdboyer commentedwow, so, there's an *astounding* number of places where we alter an empty array, it seems. i'm gonna open a separate issue about not altering an empty array...where can can argue about it, as i already know timplunkett and i disagree.
regardless, this should fix it for now.
Comment #18
eclipsegc commentedDiscussed at length with sdboyer, I'm on board.
RTBC
Eclipse
Comment #19
alexpottCommitted fd9804d and pushed to 8.x. Thanks!
Need to ensure that the change record https://drupal.org/node/1880620 is correct...
Also this needing fixing on commit...
Comment #20
catch#2083415: [META] Write up all outstanding change notices before release
Comment #21
xjmTagging "Missing change record", as completing the change record updates here blocks a beta: #2083415: [META] Write up all outstanding change notices before release.
The patch for this issue was committed on June 13, 2013, meaning the change record for this issue has been missing for more than seven months.
Comment #22
chx commentedI am not even sure originally this needed a change notice but now it surely doesn't need one; the build method is explained in the BAP change notice.
Comment #23
chx commentedComment #24
wim leers