summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Catchpole2014-02-20 12:11:56 (GMT)
committerNathaniel Catchpole2014-02-20 12:11:56 (GMT)
commitbd098e586f320f2d5b0dc14aa4242219ca0c717c (patch)
tree6b0bb90d320243b880a5d185fb2bcb9324fa51fb
parent36a2d62b735ba1df75dcd767b809f33e1ee1e60d (diff)
Issue #2196831 by kirby14: Convert all calls & docs references to check_plain() in core to Drupal\Component\Utility\String::checkPlain() in edit module.
-rw-r--r--core/modules/edit/lib/Drupal/edit/MetadataGenerator.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/modules/edit/lib/Drupal/edit/MetadataGenerator.php b/core/modules/edit/lib/Drupal/edit/MetadataGenerator.php
index 2fd63ed..89ae1d9 100644
--- a/core/modules/edit/lib/Drupal/edit/MetadataGenerator.php
+++ b/core/modules/edit/lib/Drupal/edit/MetadataGenerator.php
@@ -8,6 +8,7 @@
namespace Drupal\edit;
use Drupal\Component\Plugin\PluginManagerInterface;
+use Drupal\Component\Utility\String;
use Drupal\Core\Entity\EntityInterface;
use Drupal\Core\Field\FieldItemListInterface;
use Drupal\edit\Access\EditEntityFieldAccessCheckInterface;
@@ -88,7 +89,7 @@ class MetadataGenerator implements MetadataGeneratorInterface {
$label = $items->getFieldDefinition()->getLabel();
$editor = $this->editorManager->createInstance($editor_id);
$metadata = array(
- 'label' => check_plain($label),
+ 'label' => String::checkPlain($label),
'access' => TRUE,
'editor' => $editor_id,
'aria' => t('Entity @type @id, field @field', array('@type' => $entity->getEntityTypeId(), '@id' => $entity->id(), '@field' => $label)),