Commit ee5af45d authored by webchick's avatar webchick

Issue #2214525 by Palashvijay4O: Remove unused Drupal\Core\Utility\Title

parent b5e409a0
<?php
/**
* @file
* Contains \Drupal\Core\Utility\Title.
*/
namespace Drupal\Core\Utility;
/**
* Defines some constants related with Drupal page title.
*/
class Title {
/**
* Flag for controller titles, for sanitizing via String::checkPlain
*/
const CHECK_PLAIN = 0;
/**
* For controller titles, for sanitizing via Xss::filterAdmin.
*/
const FILTER_XSS_ADMIN = 1;
/**
* For controller titles, text has already been sanitized.
*/
const PASS_THROUGH = -1;
}
......@@ -9,7 +9,6 @@
use Drupal\Component\Utility\String;
use Drupal\Component\Utility\Xss;
use Drupal\Core\Utility\Title;
use Drupal\simpletest\WebTestBase;
/**
......
......@@ -8,7 +8,6 @@
namespace Drupal\views\Plugin\views\area;
use Drupal\Core\Form\FormStateInterface;
use \Drupal\Core\Utility\Title as UtilityTitle;
/**
* Views area title override handler.
......@@ -54,7 +53,7 @@ public function preRender(array $results) {
// If a title is provided, process it.
if (!empty($this->options['title'])) {
$value = $this->globalTokenReplace($this->options['title']);
$this->view->setTitle($this->sanitizeValue($value, 'xss_admin'), UtilityTitle::PASS_THROUGH);
$this->view->setTitle($this->sanitizeValue($value, 'xss_admin'));
}
}
......
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