summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2014-12-29 20:29:26 (GMT)
committerwebchick2014-12-29 20:29:26 (GMT)
commitee5af45d11fa34060586f004b0e765e654eea5ec (patch)
tree634663836b727001c493938fa6b21f63e9a42b76
parentb5e409a0f1e43a17899aa831171b049109b49bdb (diff)
Issue #2214525 by Palashvijay4O: Remove unused Drupal\Core\Utility\Title
-rw-r--r--core/lib/Drupal/Core/Utility/Title.php30
-rw-r--r--core/modules/system/src/Tests/System/PageTitleTest.php1
-rw-r--r--core/modules/views/src/Plugin/views/area/Title.php3
3 files changed, 1 insertions, 33 deletions
diff --git a/core/lib/Drupal/Core/Utility/Title.php b/core/lib/Drupal/Core/Utility/Title.php
deleted file mode 100644
index 40a3a91..0000000
--- a/core/lib/Drupal/Core/Utility/Title.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?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;
-
-}
diff --git a/core/modules/system/src/Tests/System/PageTitleTest.php b/core/modules/system/src/Tests/System/PageTitleTest.php
index 98148cd..204d265 100644
--- a/core/modules/system/src/Tests/System/PageTitleTest.php
+++ b/core/modules/system/src/Tests/System/PageTitleTest.php
@@ -9,7 +9,6 @@ namespace Drupal\system\Tests\System;
use Drupal\Component\Utility\String;
use Drupal\Component\Utility\Xss;
-use Drupal\Core\Utility\Title;
use Drupal\simpletest\WebTestBase;
/**
diff --git a/core/modules/views/src/Plugin/views/area/Title.php b/core/modules/views/src/Plugin/views/area/Title.php
index b159454..8843324 100644
--- a/core/modules/views/src/Plugin/views/area/Title.php
+++ b/core/modules/views/src/Plugin/views/area/Title.php
@@ -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 @@ class Title extends AreaPluginBase {
// 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'));
}
}