/** * Convert the property "resource" * * @param string $targetType * @param string $propertyName * @param PropertyMappingConfigurationInterface $configuration * @return string */ public function getTypeOfChildProperty($targetType, $propertyName, PropertyMappingConfigurationInterface $configuration) { switch ($propertyName) { case 'resource': return 'TYPO3\\Flow\\Resource\\Resource'; case 'originalAsset': return 'TYPO3\\Media\\Domain\\Model\\Image'; case 'title': return 'string'; } return parent::getTypeOfChildProperty($targetType, $propertyName, $configuration); }
/** * Convert the property "resource" * * @param string $targetType * @param string $propertyName * @param PropertyMappingConfigurationInterface $configuration * @return string */ public function getTypeOfChildProperty($targetType, $propertyName, PropertyMappingConfigurationInterface $configuration) { switch ($propertyName) { case 'resource': return PersistentResource::class; case 'originalAsset': return Image::class; case 'title': return 'string'; } return parent::getTypeOfChildProperty($targetType, $propertyName, $configuration); }