summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2013-10-31 11:46:32 (GMT)
committerNathaniel Catchpole2013-10-31 11:46:32 (GMT)
commite1123158befb4c638cc19212ebc7e0c4896c39c0 (patch)
treee45e6dda375b4c48baac41a4190a24350999c626
parent992570105947894a9ef18cf5b91aff17d075dc19 (diff)
Issue #2102453 by ACF, JulienD, InternetDevels: Remove drupal_set_title() in help module controllers.
-rw-r--r--core/modules/help/lib/Drupal/help/Controller/HelpController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/help/lib/Drupal/help/Controller/HelpController.php b/core/modules/help/lib/Drupal/help/Controller/HelpController.php
index e41e6d5..7aac826 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)) {