Commit e1123158 authored by catch's avatar catch

Issue #2102453 by ACF, JulienD, InternetDevels: Remove drupal_set_title() in...

Issue #2102453 by ACF, JulienD, InternetDevels: Remove drupal_set_title() in help module controllers.
parent 99257010
......@@ -10,6 +10,7 @@
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 @@ public function helpPage($name) {
$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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment