src/Utils/Filter/ConvertLiteralUrl.php
/**
     * Filter and return the value.
     *
     * @param string $string The value to filter
     *
     * @return string The filtered value
     */
Filter and return the value.
@param string $string The value to filter

@return string The filtered value
Filter and return the value . @param string $string The value to filter @return string The filtered value
public function filter($string)
    {
        $string = preg_replace('#[^0-9a-z]+#i', '-', parent::filter($string));
        $string = strtolower($string);
        $string = trim($string, '-');
        return $string;
    }
public function filter ( $ string ) { $ string = preg_replace ( '#[^0-9a-z]+#i' , '-' , parent :: filter ( $ string ) ) ; $ string = strtolower ( $ string ) ; $ string = trim ( $ string , '-' ) ; return $ string ; }
Filter and return the value.
Filter and return the value .
// replace all characters that are not numbers or simple chars // return the converted URL