Skip to content
Snippets Groups Projects
Commit 36ed633f authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2296237 by er.pushpinderrana: Replace check_plain() to...

Issue #2296237 by er.pushpinderrana: Replace check_plain() to Drupal\Component\Utility\String::checkPlain() in file module.
parent 168c314d
No related branches found
No related tags found
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
......@@ -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'),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment