From 66fc881cfe7d5cf748797d2f96aa22d5bba176f6 Mon Sep 17 00:00:00 2001
From: Nathaniel Catchpole <catch@35733.no-reply.drupal.org>
Date: Thu, 20 Feb 2014 12:09:35 +0000
Subject: [PATCH] Issue #2196815 by kirby14: Convert all calls & docs
 references to check_plain() in core to
 Drupal\Component\Utility\String::checkPlain() in color module.

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

diff --git a/core/modules/color/color.module b/core/modules/color/color.module
index aaf0ba6f20b5..8a54e5558ca0 100644
--- a/core/modules/color/color.module
+++ b/core/modules/color/color.module
@@ -5,6 +5,7 @@
  */
 
 use Drupal\Core\Asset\CssOptimizer;
+use Drupal\Component\Utility\String;
 
 /**
  * Implements hook_help().
@@ -214,7 +215,7 @@ function color_scheme_form($complete_form, &$form_state, $theme) {
     if (isset($names[$name])) {
       $form['palette'][$name] = array(
         '#type' => 'textfield',
-        '#title' => check_plain($names[$name]),
+        '#title' => String::checkPlain($names[$name]),
         '#value_callback' => 'color_palette_color_value',
         '#default_value' => $value,
         '#size' => 8,
-- 
GitLab