Templating/Utils/StringUtil.php
public static function slugify($string)
    {
        $slug = \preg_replace('~[^\\pL0-9_]+~u', '-', \trim($string, '-'));
        $slug = \iconv('utf-8', 'us-ascii//TRANSLIT', $slug);
        $slug = \preg_replace('~[^-a-z0-9_]+~', '', \strtolower($slug));

        return $slug;
    }
public static function slugify($string)
    {
        $slug = \preg_replace('~[^\\pL0-9_]+~u', '-', \trim($string, '-'));
        $slug = \iconv('utf-8', 'us-ascii//TRANSLIT', $slug);
        $slug = \preg_replace('~[^-a-z0-9_]+~', '', \strtolower($slug));

        return $slug;
    }
@param string $string

@return string