Bundle/BusinessEntityBundle/Handler/TwigSlugHandler.php
public function transliterate($text, $separator, $object)
    {
        if ($object instanceof BusinessTemplate
            || (in_array(Translation::class, class_uses($object))
            && $object->getTranslatable() instanceof BusinessTemplate)) {
            $slug = Transliterator::urlize($text, $separator, true);
        } else {
            $slug = Transliterator::urlize($text, $separator);
        }

        return $slug;
    }
public function transliterate($text, $separator, $object)
    {
        if ($object instanceof BusinessTemplate
            || (in_array(Translation::class, class_uses($object))
            && $object->getTranslatable() instanceof BusinessTemplate)) {
            $slug = Transliterator::urlize($text, $separator, true);
        } else {
            $slug = Transliterator::urlize($text, $separator);
        }

        return $slug;
    }
public function transliterate ( $ text , $ separator , $ object ) { if ( $ object instanceof BusinessTemplate || ( in_array ( Translation :: class , class_uses ( $ object ) ) && $ object -> getTranslatable ( ) instanceof BusinessTemplate ) ) { $ slug = Transliterator :: urlize ( $ text , $ separator , true ) ; } else { $ slug = Transliterator :: urlize ( $ text , $ separator ) ; } return $ slug ; }
Transliterates the slug and keep twig variable.

@param string $text
@param string $separator
@param object $object

@return string
Transliterates the slug and keep twig variable .