Neos\Fusion\Tests\Functional\TypoScriptObjects\Fixtures\TypeConverter\TestModelConverter::convertFrom PHP Метод

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

Actually convert from $source to $targetType
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : boolean
$source mixed
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат boolean
    public function convertFrom($source, $targetType, array $convertedChildProperties = array(), PropertyMappingConfigurationInterface $configuration = null)
    {
        // This would use the identifier of the source in reality
        return unserialize($source);
    }
TestModelConverter