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

See Issue #85895

Description

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 .

Impact

Using this method will trigger a PHP E_USER_DEPRECATED error.

Affected Installations

Any 3rd party extension calling :php:`TYPO3\CMS\Core\Resource\File::_getMetaData() is affected.

Migration

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