kartik\helpers\Enum::boolList PHP Method

boolList() public static method

Example: ~~~ print_r(Enum::boolList()); print_r(Enum::boolList('Active', 'Inactive')); ~~~
public static boolList ( string $false = null, string $true = null ) : array
$false string the label for the false value
$true string the label for the true value
return array
    public static function boolList($false = null, $true = null)
    {
        static::initI18N();
        return [false => empty($false) ? Yii::t('kvenum', 'No') : $false, true => empty($true) ? Yii::t('kvenum', 'Yes') : $true];
    }