Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/GeneratedLink.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 7a779792577d |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
1 <?php | 1 <?php |
2 | 2 |
3 namespace Drupal\Core; | 3 namespace Drupal\Core; |
4 | 4 |
5 use Drupal\Component\Render\MarkupInterface; | 5 use Drupal\Component\Render\MarkupInterface; |
6 use Drupal\Component\Utility\Unicode; | |
7 use Drupal\Core\Render\BubbleableMetadata; | 6 use Drupal\Core\Render\BubbleableMetadata; |
8 | 7 |
9 /** | 8 /** |
10 * Used to return generated links, along with associated cacheability metadata. | 9 * Used to return generated links, along with associated cacheability metadata. |
11 * | 10 * |
64 | 63 |
65 /** | 64 /** |
66 * {@inheritdoc} | 65 * {@inheritdoc} |
67 */ | 66 */ |
68 public function count() { | 67 public function count() { |
69 return Unicode::strlen($this->__toString()); | 68 return mb_strlen($this->__toString()); |
70 } | 69 } |
71 | 70 |
72 } | 71 } |