Neos\Flow\Validation\ValidatorResolver::resolveValidatorObjectName PHP Метод

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

Returns the class name of an appropriate validator for the given type. If no validator is available FALSE is returned
protected resolveValidatorObjectName ( string $validatorType ) : string | boolean
$validatorType string Either the fully qualified class name of the validator or the short name of a built-in validator
Результат string | boolean Class name of the validator or FALSE if not available
    protected function resolveValidatorObjectName($validatorType)
    {
        $validatorType = ltrim($validatorType, '\\');
        $validatorClassNames = static::getValidatorImplementationClassNames($this->objectManager);
        if ($this->objectManager->isRegistered($validatorType) && isset($validatorClassNames[$validatorType])) {
            return $validatorType;
        }
        if (strpos($validatorType, ':') !== false) {
            list($packageName, $packageValidatorType) = explode(':', $validatorType);
            $possibleClassName = sprintf('%s\\Validation\\Validator\\%sValidator', str_replace('.', '\\', $packageName), $this->getValidatorType($packageValidatorType));
        } else {
            $possibleClassName = sprintf('Neos\\Flow\\Validation\\Validator\\%sValidator', $this->getValidatorType($validatorType));
        }
        if ($this->objectManager->isRegistered($possibleClassName) && isset($validatorClassNames[$possibleClassName])) {
            return $possibleClassName;
        }
        return false;
    }