Skip to content
Snippets Groups Projects
Commit 36a2d62b authored by catch's avatar catch
Browse files

Issue #2196825 by kirby14: Convert all calls & docs references to...

Issue #2196825 by kirby14: Convert all calls & docs references to check_plain() in core to Drupal\Component\Utility\String::checkPlain() in content_translation module.
parent 24495d5a
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
* The content translation administration forms.
*/
use Drupal\Component\Utility\String;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Field\FieldDefinitionInterface;
use Drupal\Core\Language\Language;
......@@ -194,10 +195,10 @@ function _content_translation_preprocess_language_content_settings_table(&$varia
'bundle' => array(
'#prefix' => '<span class="visually-hidden">',
'#suffix' => '</span> ',
'#markup' => check_plain($element[$bundle]['settings']['#label']),
'#markup' => String::checkPlain($element[$bundle]['settings']['#label']),
),
'field' => array(
'#markup' => check_plain($field_element['#label']),
'#markup' => String::checkPlain($field_element['#label']),
),
),
'class' => array('field'),
......@@ -228,15 +229,15 @@ function _content_translation_preprocess_language_content_settings_table(&$varia
'bundle' => array(
'#prefix' => '<span class="visually-hidden">',
'#suffix' => '</span> ',
'#markup' => check_plain($element[$bundle]['settings']['#label']),
'#markup' => String::checkPlain($element[$bundle]['settings']['#label']),
),
'field' => array(
'#prefix' => '<span class="visually-hidden">',
'#suffix' => '</span> ',
'#markup' => check_plain($field_element['#label']),
'#markup' => String::checkPlain($field_element['#label']),
),
'columns' => array(
'#markup' => check_plain($column_label),
'#markup' => String::checkPlain($column_label),
),
),
'class' => array('column'),
......
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