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()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

vijaycs85’s picture

Initial patch...

marcingy’s picture

Status: Active » Needs review

Status: Needs review » Needs work

The last submitted patch, 2102447-entity-title-1.patch, failed testing.

disasm’s picture

Status: Needs work » Needs review
FileSize
739 bytes
4.06 KB

There was a form['#title'] never being returned. Fixed the order of statements to make sure it got returned.

disasm’s picture

Since getTitle is only called in buildForm and getTitle is two lines, just got rid of the function altogether.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community

Perfect!

alexpott’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs reroll

Patch no longer applies.

ACF’s picture

Status: Needs work » Needs review
Issue tags: -Needs reroll
FileSize
3.95 KB

Just a reroll of patch 5. I guess this can go back to rtbc if it goes green.

vijaycs85’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +London_2013_October

Thanks @AFC, looks good to me.

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.