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 |
---|---|---|---|
#1 | drupal-remove_drupal_set_title_in_system_module-2102475-1.patch | 597 bytes | InternetDevels |
Comments
Comment #1
InternetDevels CreditAttribution: InternetDevels commentedHere is the patch.
Comment #2
dawehnerThis looks fine. I think we should open a follow up to return confirm_form() if it is not needed anymore.
Comment #3
vijaycs85Fixed as part of #2143933: Add _title and _title_callback to all routes.. Sorry @InternetDevels, Should have got commit credit for you on #2143933: Add _title and _title_callback to all routes., but we are late :(
Comment #4
MustangGB CreditAttribution: MustangGB commented