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

Issue #2102467 by InternetDevels, sidharthap | vijaycs85: Remove...

Issue #2102467 by InternetDevels, sidharthap | vijaycs85: Remove drupal_set_title() in path module controllers.
parent df54550a
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
......@@ -6,6 +6,7 @@
*/
use Drupal\Core\Language\Language;
use Drupal\Component\Utility\String;
/**
* Returns a listing of all defined URL aliases.
......@@ -113,8 +114,8 @@ function path_admin_overview($keys = NULL) {
*/
function path_admin_edit($path = array()) {
if ($path) {
drupal_set_title($path['alias']);
$output = drupal_get_form('path_admin_form', $path);
$output['#title'] = String::checkPlain($path['alias']);
}
else {
$output = drupal_get_form('path_admin_form');
......
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