TypeConverterRegistry

class \TYPO3\CMS\Extbase\Property\TypeConverterRegistry

Registry containing all available Type Converters, registered via Services.yaml.

Table of Contents

Properties

$typeConverters  : array<string, array<string, array<int, TypeConverterInterface>>>

Methods

add()  : void
Used in the TypeConverterPass only.
findTypeConverter()  : TypeConverterInterface
findEligibleConverterWithHighestPriority()  : TypeConverterInterface|null
findFirstEligibleTypeConverterInObjectHierarchy()  : TypeConverterInterface|null
Tries to find a suitable type converter for the given source type and target type.
getConvertersForInterfaces()  : TypeConverterInterface[]

Properties

Methods

findFirstEligibleTypeConverterInObjectHierarchy()

Tries to find a suitable type converter for the given source type and target type.

protected findFirstEligibleTypeConverterInObjectHierarchy(string $sourceType, class-string $targetClass) : TypeConverterInterface|null

Parameters

$sourceType : string

Type of the source to convert from

$targetClass : class-string

Name of the target class to find a type converter for

Tags

throws
InvalidTargetException
throws
DuplicateTypeConverterException

Return values

TypeConverterInterface|null
On this page