Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
menu system
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
3 Aug 2013 at 03:22 UTC
Updated:
29 Jul 2014 at 22:43 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
tim.plunkettSee attached.
Comment #2
pwolanin commentedcan we use null instead of - in the yaml?
Comment #3
dawehnerIsn't it a bit safer, especially in the future, to just rely on 'type' => MENU_NORMAL_ITEM?
According to http://yaml.org/type/null.html there is support for both '~', 'null', etc. Currently all of the conversions went with ~ but I do actually prefer 'null', so you don't have to guess what "~" could mean.
The getPatternOutline() is the perfect method, as it gets the stripped path, see
Comment #4
tim.plunkettI don't believe MENU_NORMAL_ITEM triggers the bug in quite the same way, but I can try it.
Comment #5
tim.plunkettTried it locally, it breaks differently and not as spectacularly, and isn't related to anything I've encountered in core.
#1 is the bug as it is in core and as it blocks that issue. And since the local task stuff is still in flux, I don't think its wrong to use this in test coverage. The rest of that test module uses all of those menu type constants.
Comment #6
dawehnerokay, let's go with it.
Comment #7
xjm@alexpott and I both also prefer the explicit NULL to the ~, and NULL is what we use elsewhere in core. ("Elsewhere" being Views UI.)
Comment #8
xjmOh, re:
returns no results. So unless these conversions are still being worked on?
Comment #9
xjmSorry, I meant to set this back to NR.
Comment #10
tim.plunkettWhy NR? This is literally the least important part of the patch. It's YAML, they're equivalent, done.
Comment #11
xjmBecause @alexpott asked me to make the change, and I wanted to let @dawehner give feedback on it because of #3 and #8, and I don't RTBC my own changes to functional code or tests.
Edit: Aren't you supposed to have no laptop?
Comment #12
pwolanin commented@xjm - the YAML spec says "null" not "NULL"?
Comment #13
xjmI just read it and it specifies any of the following:
http://yaml.org/type/null.html
Since
NULLis consistent with our coding standards elsewhere, and since we also useTRUEandFALSEin yaml, I went withNULL.Comment #14
alexpottCommitted 4e0d7b5 and pushed to 8.x. Thanks!
Comment #15
tim.plunkett