kartik\select2\Select2::parseBool PHP Method

parseBool() protected static method

Parses the variable for boolean value and returns a right JS expression
protected static parseBool ( mixed $var ) : yii\web\JsExpression
$var mixed the variable value to parse
return yii\web\JsExpression
    protected static function parseBool($var)
    {
        return new JsExpression($var ? 'true' : 'false');
    }