‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Property\TypeConverter\CoreTypeConverter Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Property\TypeConverter\CoreTypeConverter:
TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter TYPO3\CMS\Extbase\Property\TypeConverterInterface TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 convertFrom ( $source, string $targetType, array $convertedChildProperties=[], ?PropertyMappingConfigurationInterface $configuration=null)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter
 getTargetTypeForSource ($source, string $originalTargetType, ?PropertyMappingConfigurationInterface $configuration=null)
 
 getSourceChildPropertiesToBeConverted ($source)
 
 getTypeOfChildProperty (string $targetType, string $propertyName, PropertyMappingConfigurationInterface $configuration)
 

Detailed Description

Converter which transforms simple types to a core type implementing \TYPO3\CMS\Core\Type\TypeInterface.

Definition at line 28 of file CoreTypeConverter.php.

Member Function Documentation

◆ convertFrom()

TYPO3\CMS\Extbase\Property\TypeConverter\CoreTypeConverter::convertFrom (   $source,
string  $targetType,
array  $convertedChildProperties = [],
?PropertyMappingConfigurationInterface  $configuration = null 
)

Convert an object from $source to an Enumeration.

Parameters
mixed$source

only to be used within Extbase, not part of TYPO3 Core API.

Implements TYPO3\CMS\Extbase\Property\TypeConverterInterface.

Definition at line 36 of file CoreTypeConverter.php.