Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / image / image.field.inc
index 9fcdf69116c561ee85f7b892d85d05e9b7ddac90..bf69b90442ec8759d11665a053d8de411f0bba64 100644 (file)
@@ -5,7 +5,6 @@
  * Implement an image field, based on the file module's file field.
  */
 
-use Drupal\Component\Utility\Unicode;
 use Drupal\Core\Render\Element;
 
 /**
@@ -64,7 +63,7 @@ function template_preprocess_image_formatter(&$variables) {
   $item = $variables['item'];
 
   // Do not output an empty 'title' attribute.
-  if (Unicode::strlen($item->title) != 0) {
+  if (mb_strlen($item->title) != 0) {
     $variables['image']['#title'] = $item->title;
   }