Guest User

Untitled

a guest
Oct 18th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.67 KB | None | 0 0
  1.     public function initializeCreateAction() {
  2.         /** @var $propertyMappingConfiguration \TYPO3\FLOW3\Mvc\Controller\MvcPropertyMappingConfiguration */
  3.         $propertyMappingConfiguration = $this->arguments['newTopic']->getPropertyMappingConfiguration();
  4.        
  5.         $propertyMappingConfiguration->allowCreationForSubProperty('image');
  6.  
  7.         $propertyMappingConfiguration->getConfigurationFor('image')->allowProperties('title');
  8.  
  9.         $propertyMappingConfiguration->getConfigurationFor('image.title')
  10.             ->setTypeConverterOption('TYPO3\FLOW3\Property\TypeConverter\PersistentObjectConverter', \TYPO3\FLOW3\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_TARGET_TYPE, 'string');
  11.     }
Add Comment
Please, Sign In to add comment