Neos\Flow\Validation\Validator\BooleanValueValidator::isValid PHP Method

isValid() protected method

Checks if the given value is a specific boolean value.
protected isValid ( mixed $value ) : void
$value mixed The value that should be validated
return void
    protected function isValid($value)
    {
        if ($value !== $this->options['expectedValue']) {
            $this->addError('The given value is expected to be %1$s.', 1361044943, [$this->options['expectedValue'] ? 'TRUE' : 'FALSE']);
        }
    }
BooleanValueValidator