From e1123158befb4c638cc19212ebc7e0c4896c39c0 Mon Sep 17 00:00:00 2001 From: Nathaniel Catchpole Date: Thu, 31 Oct 2013 11:46:32 +0000 Subject: [PATCH] Issue #2102453 by ACF, JulienD, InternetDevels: Remove drupal_set_title() in help module controllers. --- .../modules/help/lib/Drupal/help/Controller/HelpController.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/help/lib/Drupal/help/Controller/HelpController.php b/core/modules/help/lib/Drupal/help/Controller/HelpController.php index e41e6d5a56d..7aac8262fe6 100644 --- a/core/modules/help/lib/Drupal/help/Controller/HelpController.php +++ b/core/modules/help/lib/Drupal/help/Controller/HelpController.php @@ -10,6 +10,7 @@ use Drupal\Core\DependencyInjection\ContainerInjectionInterface; use Drupal\Core\Extension\ModuleHandlerInterface; use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; +use Drupal\Component\Utility\String; /** * Controller routines for help routes. @@ -106,7 +107,7 @@ class HelpController implements ContainerInjectionInterface { $build = array(); if ($this->moduleHandler->implementsHook($name, 'help')) { $info = system_get_info('module'); - drupal_set_title($info[$name]['name']); + $build['#title'] = String::checkPlain($info[$name]['name']); $temp = $this->moduleHandler->invoke($name, 'help', array("admin/help#$name", drupal_help_arg())); if (empty($temp)) {