Deprecation: #98479 - Deprecated file reference related functionality 

See forge#98479

Description 

With the introduction of the new TCA type file , a couple of cross dependencies have been deprecated, mainly related to FormEngine.

The UserFileInlineLabelService class has been deprecated, since it was only used for generating the inline label for file references in TCA type inline . This is now handled by the new TCA type file directly.

The FileExtensionFilter->filterInlineChildren() method, which was previously used as [filter][userFunc] to filter the available file extensions in FormEngine as well as DataHandler has been deprecated. This is now done internally.

The ExtensionManagementUtility::getFileFieldTCAConfig() method, which was usually used to simplify configuration of FAL fields in TCA has been deprecated as well, since the applied configuration is now handled internally.

Impact 

Instantiating the UserFileInlineLabelService class, as well as calling the FileExtensionFilter->filterInlineChildren() and ExtensionManagementUtility::getFileFieldTCAConfig() methods will trigger a PHP E_USER_DEPRECATED level error. The extension scanner also reports any usage.

Affected installations 

All installations with extensions using the UserFileInlineLabelService class or one of the mentioned methods.

Migration 

Remove any usage of the UserFileInlineLabelService class. There is no migration available, since this FAL specific functionality is now handled internally.

Replace any usage of FileExtensionFilter->filterInlineChildren() with FileExtensionFilter->filter() . However, usage of this method in custom extension code should usually not be necessary.

Replace any usage of ExtensionManagementUtility::getFileFieldTCAConfig() by directly using the new TCA type file.