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 |
---|---|---|---|
#8 | drupal8.entity-system.2102447-8.patch | 3.95 KB | ACF |
#5 | drupal8.entity-system.2102447-5.patch | 3.94 KB | disasm |
#5 | interdiff.txt | 1.32 KB | disasm |
#4 | drupal8.entity-system.2102447-4.patch | 4.06 KB | disasm |
#4 | interdiff.txt | 739 bytes | disasm |
Comments
Comment #1
vijaycs85Initial patch...
Comment #2
marcingy CreditAttribution: marcingy commentedComment #4
disasm CreditAttribution: disasm commentedThere was a form['#title'] never being returned. Fixed the order of statements to make sure it got returned.
Comment #5
disasm CreditAttribution: disasm commentedSince getTitle is only called in buildForm and getTitle is two lines, just got rid of the function altogether.
Comment #6
dawehnerPerfect!
Comment #7
alexpottPatch no longer applies.
Comment #8
ACF CreditAttribution: ACF commentedJust a reroll of patch 5. I guess this can go back to rtbc if it goes green.
Comment #9
vijaycs85Thanks @AFC, looks good to me.
Comment #10
catchCommitted/pushed to 8.x, thanks!