kartik\select2\Select2::parseBool PHP Метод

parseBool() защищенный статический Метод

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
Результат yii\web\JsExpression
    protected static function parseBool($var)
    {
        return new JsExpression($var ? 'true' : 'false');
    }