Neos\Neos\Validation\Validator\UserDoesNotExistValidator::isValid PHP Метод

isValid() защищенный Метод

If at least one error occurred, the result is FALSE.
protected isValid ( mixed $value ) : void
$value mixed The value that should be validated
Результат void
    protected function isValid($value)
    {
        if (!is_string($value)) {
            throw new InvalidSubjectException('The given username was not a string.', 1325155784);
        }
        if ($this->userService->getUser($value) !== null) {
            $this->addError('The username is already in use.', 1325156008);
        }
    }
UserDoesNotExistValidator