Closed (fixed)
Project:
Page Manager
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
18 Nov 2015 at 12:15 UTC
Updated:
2 Feb 2016 at 20:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tduong commentedUploaded patch:
__construct()andcreate()to inject dependencies (added the module handler)Next step: invoke alter hook for block_view
Comment #4
berdirWhen we were looking at this, I was kind of wondering if there shouldn't actually be more code in the base class than there is right now?
Comment #5
tduong commentedFixed failing tests by PHPUnit tests.
Comment #6
tduong commentedAfter an attentive check with @Berdir, the alter hook added in the previous patch should be related to block_view instead of block_build. Fixed that.
Also we need some more discussion about what we should do with that base class.
Created followup for block_build and for the discussion about the base class.
Comment #7
tim.plunkettThis needs tests. Also $moduleHandler should be $module_handler.
Comment #8
tduong commentedReplaced $moduleHandler with $module_handler and provided a test for this alter hook.
Comment #9
tim.plunkettSorry. I only meant change the standalone variable, not the property. Should be $this->moduleHandler, and $module_handler.
This method won't run unless you call it from testAdmin(). Or just make it
public function testAlterBlock()Comment #11
tduong commentedComment #12
berdirI think the comment here is now wrong (copied from the build hook), use the comment from the view hook instead.
Hm. Lets use something like "Label to be altered" or something like that. Altered label is not correct since it is not (yet) altered.
Because we do *not* want to see this label. You're missing the crucial part of the test, to actually implement the alter hook and switch it to something else.
The idea is that you set the label to what I said above, and then the alter hook changes it to "Altered label"
This is a weird php/osx bug. Remove the uuid extension locally, it incorrectly generates uppercase UUID's.
Comment #13
berdirComment #14
tduong commentedpage_manager_test.modulefor the page_manager testComment #15
tduong commentedComment #17
berdirThis looks good to me. We also tested it manually and it allows to use tokens in block titles and they are then replaced by token.module.
Comment #18
tim.plunkettHanlder is spelled wrong
The upstream signature changed, this needs a reroll.
Comment #19
tduong commentedRerolled and refactored the typo.
Comment #20
berdirReroll looks good to me, typo fixed.
Comment #21
tim.plunkettCommitted