yii\validators\BooleanValidator::init PHP Method

init() public method

public init ( )
    public function init()
    {
        parent::init();
        if ($this->message === null) {
            $this->message = Yii::t('yii', '{attribute} must be either "{true}" or "{false}".');
        }
    }