Neos\Flow\Property\TypeConverter\PersistentObjectConverter::canConvertFrom PHP Метод

canConvertFrom() публичный Метод

We can only convert if the $targetType is either tagged with entity or value object.
public canConvertFrom ( mixed $source, string $targetType ) : boolean
$source mixed
$targetType string
Результат boolean
    public function canConvertFrom($source, $targetType)
    {
        return $this->reflectionService->isClassAnnotatedWith($targetType, Flow\Entity::class) || $this->reflectionService->isClassAnnotatedWith($targetType, ValueObject::class) || $this->reflectionService->isClassAnnotatedWith($targetType, \Doctrine\ORM\Mapping\Entity::class);
    }