You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- views_ui_truncate() cuts the string at the 80th character and adds 3 more characters, making the string 83 characters long.
- Unicode::truncate() depends on what parameters you give it.
* If $wordsafe parameter is FALSE, it cuts the string at 79 chars and adds the ellipsis, making it in total of 80 chars long.
* If $wordsafe === TRUE, it cuts it at the last word possible before the 80th character and adds the ellipsis, so it can happen that the final string won't be at 80 chars long
The text was updated successfully, but these errors were encountered:
https://www.drupal.org/node/3408283
Introduced in branch/version: 10.3.x / 10.3.0
views_ui_truncate() is deprecated. Use \Drupal\Component\Utility\Unicode::truncate() with parameter
$add_ellipsis = TRUE
instead.Before
After
Given a string longer than 80 characters:
- views_ui_truncate() cuts the string at the 80th character and adds 3 more characters, making the string 83 characters long.
- Unicode::truncate() depends on what parameters you give it.
* If $wordsafe parameter is FALSE, it cuts the string at 79 chars and adds the ellipsis, making it in total of 80 chars long.
* If $wordsafe === TRUE, it cuts it at the last word possible before the 80th character and adds the ellipsis, so it can happen that the final string won't be at 80 chars long
The text was updated successfully, but these errors were encountered: