projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website]
/
web
/
core
/
modules
/
views_ui
/
views_ui.module
diff --git
a/web/core/modules/views_ui/views_ui.module
b/web/core/modules/views_ui/views_ui.module
index bae74a83e76bbe630db61587f8fbd9e457fdb1de..318d85bd69148d9b3c5482e1464d2eae62791ebe 100644
(file)
--- a/
web/core/modules/views_ui/views_ui.module
+++ b/
web/core/modules/views_ui/views_ui.module
@@
-5,7
+5,6
@@
* Provide structure for the administrative interface to Views.
*/
* 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;
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;
use Drupal\views\ViewExecutable;
@@
-135,7
+134,7
@@
function views_ui_preprocess_views_view(&$variables) {
// Render title for the admin preview.
if (!empty($view->live_preview)) {
$variables['title'] = [
// Render title for the admin preview.
if (!empty($view->live_preview)) {
$variables['title'] = [
- '#markup' => $view->getTitle()
+ '#markup' => $view->getTitle()
,
];
}
];
}
@@
-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) {
* 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 .= '...';
}
$string .= '...';
}