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

InternetDevels’s picture

Status: Active » Needs review
FileSize
597 bytes

Here is the patch.

dawehner’s picture

Status: Needs review » Needs work

This looks fine. I think we should open a follow up to return confirm_form() if it is not needed anymore.

vijaycs85’s picture

Issue summary: View changes
Status: Needs work » Closed (won't fix)
Related issues: +#2143933: Add _title and _title_callback to all routes.

Fixed 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 :(

MustangGB’s picture

Status: Closed (won't fix) » Closed (duplicate)