Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Validation / Plugin / Validation / Constraint / UniqueFieldValueValidator.php
index 1e63e6d4df7199530c2981c220fed8b8d32ca8b4..3b8fd036f95ce005306f5d0fd9ce83034bd515a0 100644 (file)
@@ -2,7 +2,6 @@
 
 namespace Drupal\Core\Validation\Plugin\Validation\Constraint;
 
-use Drupal\Component\Utility\Unicode;
 use Symfony\Component\Validator\Constraint;
 use Symfony\Component\Validator\ConstraintValidator;
 
@@ -36,7 +35,7 @@ class UniqueFieldValueValidator extends ConstraintValidator {
       $this->context->addViolation($constraint->message, [
         '%value' => $item->value,
         '@entity_type' => $entity->getEntityType()->getLowercaseLabel(),
-        '@field_name' => Unicode::strtolower($items->getFieldDefinition()->getLabel()),
+        '@field_name' => mb_strtolower($items->getFieldDefinition()->getLabel()),
       ]);
     }
   }