Skip to content
Snippets Groups Projects
Commit 0b929939 authored by catch's avatar catch
Browse files

Issue #2196807 by longwave, divesh.kumar: Convert all calls to check_plain()...

Issue #2196807 by longwave, divesh.kumar: Convert all calls to check_plain() in core to Drupal\Component\Utility\String::checkPlain() in block module.
parent c26a7b03
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -7,6 +7,7 @@
namespace Drupal\block;
use Drupal\Component\Utility\String;
use Drupal\Core\Entity\EntityViewBuilder;
use Drupal\Core\Entity\EntityViewBuilderInterface;
use Drupal\Core\Entity\EntityInterface;
......@@ -61,7 +62,7 @@ public function viewMultiple(array $entities = array(), $view_mode = 'full', $la
'#base_plugin_id' => $base_id,
'#derivative_plugin_id' => $derivative_id,
);
$build[$key]['#configuration']['label'] = check_plain($configuration['label']);
$build[$key]['#configuration']['label'] = String::checkPlain($configuration['label']);
// Place the $content returned by the block plugin into a 'content'
// child element, as a way to allow the plugin to have complete control
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment