Subtask of #1830588: [META] remove drupal_set_title() and drupal_get_title()
Problem/Motivation
Removing drupal_set_title() is release-blocking for Drupal 8.
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 | 2102487-diff-3-5.txt | 635 bytes | vijaycs85 |
| #5 | 2102487-remove-set-title-tracker-5.patch | 3.28 KB | vijaycs85 |
| #3 | drupal8.removedrupalsettitle.track-3.patch | 2.66 KB | ACF |
Comments
Comment #1
wesleydv commentedAssigning
Comment #2
wesleydv commentedThis issue is currently blocked by #1972990: Convert tracker_page() to a Controller
Comment #3
ACF commentedIn converting tracker_page to a controller in #1972990: Convert tracker_page() to a Controller the tracker tab wasn't maintained. The way that the new system works the tab can be named seperately of the page title and therefore the drupal_set_title could go. I've added in tests to check the title and tab is being set correctly.
Comment #4
dawehnerDo we really want to change the behavior from using the username to just "Track"? For me this feels wrong.
You should set #title on the resulting render array in order to keep the same functionality.
Comment #5
vijaycs85@dawehner, I guess we are just adding the tab 'Track' here. The title of the page is already handled by TrackerUserTab::getTitle(). Since we are removing drupal_set_title() here, updating the title callback to use new method $user->getUsername()instead of deprecated user_format_name().
Comment #6
dawehnerYou are so right, I could just not read the patch/test properly.
Comment #8
dipen chaudhary commentedSeems like testbot issue, unable to load image from test images. Local test runs fine.
Comment #12
Crell commentedComment #13
xjmTagging and bumping as a child of the meta.
Comment #14
vijaycs85Comment #15
vijaycs85Still the patch applies. As per #6, setting back to RTBC
Comment #16
Crell commented5: 2102487-remove-set-title-tracker-5.patch queued for re-testing.
Comment #17
webchickCommitted and pushed to 8.x. Thanks!