Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Subtask of #1830588: [META] remove drupal_set_title() and drupal_get_title()
Problem/Motivation
Using procedural drupal_set_title() inside controller class is not encouraged.
Proposed resolution
Replace drupal_set_title() with #title in page return array.
Remaining tasks
Issue patch
User interface changes
Refer parent issue at #1830588: [META] remove drupal_set_title() and drupal_get_title()
API changes
Refer parent issue at #1830588: [META] remove drupal_set_title() and drupal_get_title()
Related Issues
Comment | File | Size | Author |
---|---|---|---|
#14 | 2102441-14.patch | 2.06 KB | sidharthap |
#12 | 2102441-12.patch | 3 KB | sidharthap |
#10 | 2102441-10.patch | 2.99 KB | rteijeiro |
#8 | drupal-remove_drupal_set_title_in_config_module-2102441-8.patch | 2.99 KB | InternetDevels |
#5 | drupal8.config-module.2102441-5.patch | 2.67 KB | -enzo- |
Comments
Comment #1
sidharthapInitial patch.
Comment #2
vijaycs85Thanks for working on this one @sidharthap. one minor space issue. Other than that patch looks great. Can you make sure it works after this patch applied & cc all - please?
Empty space.
Comment #4
tim.plunkettThese need to be left in until #2047633: Move definition of menu links to hook_menu_link_defaults(), decouple key name from path, and make 'parent' explicit goes in
These are blocked by #2102125: Big Local Task Conversion
Trailing whitespace
Comment #5
-enzo- CreditAttribution: -enzo- commentedI did a re-roll to remove the title menu deletion based in @tim.plunkett recommendation
Comment #6
InternetDevels CreditAttribution: InternetDevels commentedChanged status.
Comment #8
InternetDevels CreditAttribution: InternetDevels commentedNew one.
Comment #10
rteijeiro CreditAttribution: rteijeiro commentedWrong patch name. It has a whitespace at the beginning O_o
Comment #12
sidharthapIt should pass.
Comment #13
dawehnerWe should really use a translation here
These once should be moved to the routing file instead
Comment #14
sidharthapThank you @dawehner
Corrected #13 patch.
Comment #15
sidharthapThank you @dawehner
Corrected #13 patch.
Comment #16
dawehnerThank you
Comment #17
Dries CreditAttribution: Dries commentedCommitted to 8.x. Thank!
Comment #18
vijaycs85