Property | Type | Description | |
---|---|---|---|
$priority | integer | The priority for this converter. | |
$sourceTypes | array |
The source types this converter can convert. | |
$targetType | string | The target type this converter can convert to. |
Method | Description | |
---|---|---|
canConvertFrom ( mixed $source, string $targetType ) : boolean | This implementation always returns TRUE for this method. | |
getPriority ( ) : integer | Return the priority of this TypeConverter. TypeConverters with a high priority are chosen before low priority. | |
getSourceChildPropertiesToBeConverted ( mixed $source ) : array |
Returns an empty list of sub property names | |
getSupportedSourceTypes ( ) : array |
Returns the list of source types the TypeConverter can handle. | |
getSupportedTargetType ( ) : string | Return the target type this TypeConverter converts to. | |
getTargetTypeForSource ( mixed $source, string $originalTargetType, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | Returns the $originalTargetType unchanged in this implementation. | |
getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string | This method is never called, as getSourceChildPropertiesToBeConverted() returns an empty array. |
public getPriority ( ) : integer | ||
return | integer |
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array |
||
$source | mixed | |
return | array |
public getSupportedSourceTypes ( ) : array |
||
return | array |
public getSupportedTargetType ( ) : string | ||
return | string |
public getTargetTypeForSource ( mixed $source, string $originalTargetType, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | ||
$source | mixed | the source data |
$originalTargetType | string | the type we originally want to convert to |
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | |
return | string |
protected int $priority | ||
return | integer |
protected array |
||
return | array |
protected string $targetType | ||
return | string |