Problem/Motivation
Titles are either defined via _title(_callback) on the routes, or as #title on the render array, in case you depend on the result of the controller.
#2359901: Discourage $main_content['#title'] in favor of route titles and title callbacks has a lot of fixes to use _title_(callback) in cases where its possible.
Proposed resolution
Take over those conversions into a new patch.
Remaining tasks
User interface changes
API changes
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | interdiff.txt | 2.71 KB | kgoel |
| #12 | 2403359-12.patch | 114.12 KB | kgoel |
Comments
Comment #1
dawehner.
Comment #2
wim leersI'm rolling those fixes into a patch for this issue.
Comment #3
wim leersI'd be very surprised if this passes. But the patch applies, and now somebody else can hopefully push it to the finish line.
IMO this is important for both Usability and DX: many titles are currently either wrong or missing (Usability), and the way much (if not most) of core is currently setting titles, has a bad DX, which contrib developers will hence also adopt.
Comment #5
dawehner@kgoel at least planned to work on it.
Comment #6
kgoel commentedJust a re-roll since patch didn't apply. Looking into fails and exceptions.
Comment #7
dawehner.
Comment #8
wim leersSince #3 has thousands of failures, and #6 is only a straight reroll to chase HEAD, I think this should be NW.
Comment #9
kgoel commentedIt's not going to fix whole lot but trying just to get an idea.
Comment #11
kgoel commentedchasing head....
Comment #12
kgoel commentedComment #14
wim leersI think we want to postpone this on #2350509: Implement auto-route generation for all core entities and convert all of the core entities., since there is a lot of overlap, and much of this becomes obsolete with that.
Comment #15
wim leersUgh, #2350509: Implement auto-route generation for all core entities and convert all of the core entities. got stuck, and hence this got stuck. But, looks like that issue is active again, so keeping postponed.
Comment #16
mgiffordComment #18
catchComment #19
catchUnpostponing this because the other issue is happening.
Comment #20
catchComment #21
xjmComment #22
xjmComment #29
andypost