Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
drupal
Commits
ee5af45d
Commit
ee5af45d
authored
Dec 29, 2014
by
webchick
Browse files
Issue
#2214525
by Palashvijay4O: Remove unused Drupal\Core\Utility\Title
parent
b5e409a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/lib/Drupal/Core/Utility/Title.php
deleted
100644 → 0
View file @
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
;
}
core/modules/system/src/Tests/System/PageTitleTest.php
View file @
ee5af45d
...
...
@@ -9,7 +9,6 @@
use
Drupal\Component\Utility\String
;
use
Drupal\Component\Utility\Xss
;
use
Drupal\Core\Utility\Title
;
use
Drupal\simpletest\WebTestBase
;
/**
...
...
core/modules/views/src/Plugin/views/area/Title.php
View file @
ee5af45d
...
...
@@ -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'
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment