Browse Source

Fixed Unicode::truncate() link.

merge-requests/4/head 8.x-2.0
Chi 7 years ago
parent
commit
ec952a1cd5
  1. 2
      src/TwigExtension.php

2
src/TwigExtension.php

@ -642,7 +642,7 @@ class TwigExtension extends \Twig_Extension {
* @return string * @return string
* The truncated string. * The truncated string.
* *
* @see Unicode::truncate() * @see \Drupal\Component\Utility\Unicode::truncate()
*/ */
public function truncate($string, $max_length, $wordsafe = FALSE, $add_ellipsis = FALSE, $min_wordsafe_length = 1) { public function truncate($string, $max_length, $wordsafe = FALSE, $add_ellipsis = FALSE, $min_wordsafe_length = 1) {
return Unicode::truncate($string, $max_length, $wordsafe, $add_ellipsis, $min_wordsafe_length); return Unicode::truncate($string, $max_length, $wordsafe, $add_ellipsis, $min_wordsafe_length);

Loading…
Cancel
Save