Type converters are commonly used when it is necessary to convert from one type
into another. They are usually applied in the Extbase controller in the
For example a date might be given as string in some language,
"October 7th, 2022" or as UNIX time stamp:
Your action method, however, expects a
\DateTime object. Extbase tries to
match the data coming from the frontend automatically.
When matching the data formats is expected to fail you can use one of the type
converters provided by Extbase or implement a type converter yourself
by implementing the interface
You can find the type converters provided by Extbase in the directory EXT:extbase/Classes/Property/TypeConverter.
Custom type converters¶
Changed in version 12.0: Starting with TYPO3 v12.0 a type converter does not have to be registered
via the now deprecated method
Remove calls to this method when dropping TYPO3 v11 support. This method will be
removed with TYPO3 v13.0. Register a type converter in your extension's
A custom type converter must implement the interface
\TYPO3\CMS\Extbase\Property\TypeConverterInterface. In most use cases
it will extend the abstract class
already implements this interface.
All type converters should have no internal state, such that they can be used as singletons and multiple times in succession.
The registration and configuration of a type converter is done in the extension's
- name: extbase.type_converter