By berdir on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.8.x
Introduced in version:
8.8.0
Issue links:
Description:
The following functions have been deprecated:
| Old function/method | New method |
|---|---|
| FileSystem::uriScheme() file_uri_scheme() |
StreamWrapperManager::getScheme() |
| file_uri_target() | StreamWrapperManager::getTarget() |
| FileSystem::validScheme() file_stream_wrapper_valid_scheme() |
\Drupal::service('stream_wrapper_manager')->isValidScheme() |
| file_stream_wrapper_uri_normalize() | \Drupal::service('stream_wrapper_manager')->normalizeUri() |
| file_valid_uri() | \Drupal::service('stream_wrapper_manager')->isValidUri() |
The above table indicates which methods should now be accessed through the service and which are now static methods on the StreamWrapperManager class.
Impacts:
Module developers