kartik\builder\TabularForm::slash PHP Method

slash() protected static method

Prepends with a back slash if necessary for full namespace validation.
protected static slash ( string $str = '' ) : string
$str string the input string
return string the modified namespace
    protected static function slash($str = '')
    {
        if (empty($str) || substr($str, 1) == "\\") {
            return $str;
        }
        return "\\" . $str;
    }