file_mimetype_mapping() was removed. The mapping was placed as a protected property of the
ExtensionMimeTypeGuesser class, as its main purpose was for the guesser to use it. But there are cases when the mapping, or just the list of MIME types, should be used in itself, outside the context of guessing. For instance, a form in the File entity module should present known MIME types for the user.
Move the default mapping to a new service and class,
alterMapping() method which invokes the
file_mimetype_mapping alter hook upon service instantiation to allow modules to play with MIME type<->extension mapping.
Introduce getter/setter methods.
User interface changes
A new service
Beta phase evaluation
|Issue category||Bug because functionality in previous version is now missing|
|Issue priority||Major because it is a small regression. In D7 one could access the mapping out of the context of guessing, and could eg get a list of all known mimetypes . Afterits impossible without extending the class, because the mapping is a protected property|
None, a BC layer covers the case of custom/contrib classes extending from