Closed (works as designed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
block.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Jan 2013 at 17:22 UTC
Updated:
29 Jul 2014 at 21:49 UTC
Jump to comment: Most recent file
Comments
Comment #1
pcambraComment #2
pcambraFor the tests, the best thing here is to create a new hidden module for testing that provides a block in configuration and alter it using the 3 available hooks.
Comment #3
larowlanWill handle tests
Comment #4
larowlanSorry for squating on this
Comment #5
pcambraHere's the fix with a little test module and some assertions.
I've found a naming problem though, $id and $name properties are really confusing, I've opened #1948928: ID and NAME are confusing in block_alter hooks for fixing that.
Comment #6
benjy commentedComment #7
pcambraPatch applies cleanlyChecked it badly.Still, based in some chat with EclipseGc back then I dunno if it's needed anymore though
Comment #8
pcambra#5: 1899772-block_plugin_name_retrieve_fix-5.patch queued for re-testing.
Comment #10
pcambraMarking this as closed, "outdated" I guess, this code has changed enormously since March and this has been fixed already.