Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / GeneratedLink.php
index c2c4900e113e5f7ee7522c35f8e26e986613b8cf..62f10a5df70b53868247c13a8dcd4bf1d060af07 100644 (file)
@@ -3,7 +3,6 @@
 namespace Drupal\Core;
 
 use Drupal\Component\Render\MarkupInterface;
-use Drupal\Component\Utility\Unicode;
 use Drupal\Core\Render\BubbleableMetadata;
 
 /**
@@ -66,7 +65,7 @@ class GeneratedLink extends BubbleableMetadata implements MarkupInterface, \Coun
    * {@inheritdoc}
    */
   public function count() {
-    return Unicode::strlen($this->__toString());
+    return mb_strlen($this->__toString());
   }
 
 }