Changes for core/includes/file.inc: 6 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -95,8 +95,14 @@ function file_url_transform_relative($file_url) {
/**
* Constructs a URI to Drupal's default files location given a relative path.
*
* @deprecated in drupal:9.3.0 and is removed from drupal:10.0.0 without
* replacement.
*
* @see https://www.drupal.org/node/3223091
*/
functionfile_build_uri($path){
@trigger_error('file_build_uri() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0 without replacement. See https://www.drupal.org/node/3223091',E_USER_DEPRECATED);
Changes for core/tests/Drupal/KernelTests/Core/File/FileSystemDeprecationTest.php: 8 added lines, 0 removed lines.
Original line number
Diff line number
Diff line
@@ -23,4 +23,12 @@ public function testDeprecatedFileCreateUrl() {
$this->assertNotEmpty($url);
}
/**
* Tests deprecated file_build_uri()
*/
publicfunctiontestDeprecatedFileBuildUri(){
$this->expectDeprecation('file_build_uri() is deprecated in drupal:9.3.0 and is removed from drupal:10.0.0 without replacement. See https://www.drupal.org/node/3223091');