X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Foptions%2Fsrc%2FPlugin%2FField%2FFieldType%2FListStringItem.php;fp=web%2Fcore%2Fmodules%2Foptions%2Fsrc%2FPlugin%2FField%2FFieldType%2FListStringItem.php;h=16e8878d7abf16cc57a8a7d45bc0aacf7bc24c46;hp=1f8caeaf36174217f833bae5e9d36849e75db3f1;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php b/web/core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php index 1f8caeaf3..16e8878d7 100644 --- a/web/core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php +++ b/web/core/modules/options/src/Plugin/Field/FieldType/ListStringItem.php @@ -2,7 +2,6 @@ namespace Drupal\options\Plugin\Field\FieldType; -use Drupal\Component\Utility\Unicode; use Drupal\Core\Field\FieldStorageDefinitionInterface; use Drupal\Core\TypedData\DataDefinition; @@ -65,7 +64,7 @@ class ListStringItem extends ListItemBase { * {@inheritdoc} */ protected static function validateAllowedValue($option) { - if (Unicode::strlen($option) > 255) { + if (mb_strlen($option) > 255) { return t('Allowed values list: each key must be a string at most 255 characters long.'); } }