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 |
|---|---|---|---|
| #11 | drupal-remove-drupal_set_title-from-translation-2102445-11.patch | 1.52 KB | webwarrior |
Comments
Comment #1
vijaycs85blocked by #1987882: Convert content_translation routes to a new style controller
Comment #2
vijaycs85Comment #3
disasm commentedthis shouldn't conflict with the conversion. One line fix to get the remaining drupal_set_title removed.
Comment #4
cameron tod commentedComment #5
dawehnerPerfect!
Comment #6
dawehner3: drupal8.content-translation.module.2102445-3.patch queued for re-testing.
Comment #7
xano3: drupal8.content-translation.module.2102445-3.patch queued for re-testing.
Comment #8
vijaycs85as per #5, back to RTBC.
Comment #9
catchCommitted/pushed to 8.x, thanks!
Comment #11
webwarrior commentedRemoved the drupal_set_title from overview page.
Also now displays the more user friendly title. Don't know if there was a decision made to only display "Translate" as title for that page?
Comment #12
plachLooks good, thanks
Comment #13
webchickNot sure; looks like an oversight to me. Nice catch!
Committed and pushed to 8.x. Thanks!