Skip to content
Snippets Groups Projects
Commit e1123158 authored by catch's avatar catch
Browse files

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
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment