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
Method names should be declared in camelCase. You should rename this class to comply with PSR-1.
*
* code: https://github.com/twigphp/Twig-extensions/blob/master/lib/Twig/Extensions/Extension/Text.php
* author: HenrikBjornskov <hb@peytz.dk>
* copyright holder: (c) 2009FabienPotencier
*/
public function entity_field_truncate_filter(\Twig_Environment$env, $value, $length = 64, $preserve = false, $separator = '...')
{
if (function_exists('mb_get_info')) {
if (mb_strlen($value, $env->getCharset()) > $length) {
if ($preserve) {
// If breakpoint is on the last word, return the value without separator.
in Twig/EasyAdminTwigExtension.php, line 163
Posted from SensioLabsInsight
The text was updated successfully, but these errors were encountered: