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 |
---|---|---|---|
#5 | 2102451-filter-title-5.patch | 1.74 KB | sidharthap |
#1 | 2102451-filter-title-1.patch | 1.37 KB | vijaycs85 |
Comments
Comment #1
vijaycs85Initial patch...
Comment #3
InternetDevels CreditAttribution: InternetDevels commented#1: 2102451-filter-title-1.patch queued for re-testing.
Comment #4
dawehnerI think we should just put the title onto the route definition here.
Comment #5
sidharthapThanks @dawehner and @Vijaycs85
Corrected #4.
Comment #6
dawehnerThank you
Comment #7
catchCommitted/pushed to 8.x, thanks!