Deprecation: #85895 - Deprecate File::_getMetaData()

See forge#85895


The internal method TYPO3\CMS\Core\Resource\File::_getMetaData() which is used to fetch meta data of a file has been marked as deprecated. This method has been superseded by the TYPO3\CMS\Core\Resource\MetaDataAspect.


Using this method will trigger a PHP E_USER_DEPRECATED error.

Affected Installations

Any 3rd party extension calling :php:TYPO3CMSCoreResourceFile::_getMetaData()` is affected.


To fetch the meta data, call $fileObject->getMetaData()->get() instead.