summaryrefslogtreecommitdiffstats
path: root/core/modules/views_ui
diff options
context:
space:
mode:
authorNathaniel Catchpole2018-05-08 16:23:11 (GMT)
committerNathaniel Catchpole2018-05-08 20:55:21 (GMT)
commit154f2828998659a864349234106ad02bda1479e2 (patch)
tree95452a495e5c20d0a9994912059b0fe7d37fab69 /core/modules/views_ui
parent2a7952f2bff6a03676e6112cc64df161afeba425 (diff)
Issue #2849669 by alexpott, pwolanin, Munavijayalakshmi, dawehner: Fix \Drupal\Component\Utility\Unicode() because of the Symfony mbstring polyfill
Diffstat (limited to 'core/modules/views_ui')
-rw-r--r--core/modules/views_ui/views_ui.module5
1 files changed, 2 insertions, 3 deletions
diff --git a/core/modules/views_ui/views_ui.module b/core/modules/views_ui/views_ui.module
index bae74a8..0475bce 100644
--- a/core/modules/views_ui/views_ui.module
+++ b/core/modules/views_ui/views_ui.module
@@ -5,7 +5,6 @@
* Provide structure for the administrative interface to Views.
*/
-use Drupal\Component\Utility\Unicode;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
use Drupal\views\ViewExecutable;
@@ -341,8 +340,8 @@ function views_ui_views_analyze(ViewExecutable $view) {
* This is often used in the UI to ensure long strings fit.
*/
function views_ui_truncate($string, $length) {
- if (Unicode::strlen($string) > $length) {
- $string = Unicode::substr($string, 0, $length);
+ if (mb_strlen($string) > $length) {
+ $string = mb_substr($string, 0, $length);
$string .= '...';
}