Nette\Routing\Route::action2path PHP Method

action2path() private static method

camelCaseAction name -> dash-separated.
private static action2path ( $s ) : string
return string
    private static function action2path($s)
    {
        $s = preg_replace('#(.)(?=[A-Z])#', '$1-', $s);
        $s = strtolower($s);
        $s = rawurlencode($s);
        return $s;
    }