Mercurial > hg > cmmr2012-drupal-site
diff core/modules/views_ui/views_ui.module @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- a/core/modules/views_ui/views_ui.module Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/views_ui/views_ui.module Thu Feb 28 13:11:55 2019 +0000 @@ -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; @@ -135,7 +134,7 @@ // Render title for the admin preview. if (!empty($view->live_preview)) { $variables['title'] = [ - '#markup' => $view->getTitle() + '#markup' => $view->getTitle(), ]; } @@ -341,8 +340,8 @@ * 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 .= '...'; }