From 36ed633ff15d0ee2b7076b79d563665f03f5fde6 Mon Sep 17 00:00:00 2001
From: Alex Pott <alex.a.pott@googlemail.com>
Date: Sun, 13 Jul 2014 10:25:06 +0100
Subject: [PATCH] Issue #2296237 by er.pushpinderrana: Replace check_plain() to
 Drupal\Component\Utility\String::checkPlain() in file module.

---
 core/modules/file/file.module | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/modules/file/file.module b/core/modules/file/file.module
index a0576a96d2df..52a255a4270b 100644
--- a/core/modules/file/file.module
+++ b/core/modules/file/file.module
@@ -1607,7 +1607,7 @@ function template_preprocess_file_link(&$variables) {
     '#theme' => 'image__file_icon',
     '#uri' => file_icon_url($file_entity, $icon_directory),
     '#alt' => '',
-    '#title' => check_plain($file_entity->getFilename()),
+    '#title' => String::checkPlain($file_entity->getFilename()),
     '#attributes' => array('class' => 'file-icon'),
   );
 
-- 
GitLab