48/48 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%

------ -----------------------------------------------------------------------
Line minisite/minisite.install
------ -----------------------------------------------------------------------
45 Call to deprecated function file_uri_target():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget()
instead.
59 Call to deprecated function file_uri_target():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget()
instead.
------ -----------------------------------------------------------------------

------ -----------------------------------------------------------------------
Line minisite/src/LegacyWrapper.php
------ -----------------------------------------------------------------------
34 Call to deprecated function file_scan_directory():
in drupal:8.8.0 and is removed from drupal:9.0.0.
Use \Drupal\Core\File\FileSystemInterface::scanDirectory() instead.
52 Call to deprecated function file_valid_uri():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
\Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::isValidUri(
)
instead.
72 Call to deprecated function entity_get_display():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
EntityDisplayRepositoryInterface::getViewDisplay() instead.
92 Call to deprecated function entity_get_form_display():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
EntityDisplayRepositoryInterface::getFormDisplay() instead.
------ -----------------------------------------------------------------------

Comments

neelam_wadhwani created an issue. See original summary.

neelam_wadhwani’s picture

Assigned: neelam_wadhwani » Unassigned
Status: Needs work » Needs review
StatusFileSize
new4.14 KB

Kindly review patch.

mingsong’s picture

Regarding the #2 patch, we shouldn't call directly a method from an interface, which causes a fatal PHP error said

Error: Cannot call abstract method Drupal\Core\StreamWrapper\StreamWrapperManagerInterface::getTarget() in minisite_requirements()
mingsong’s picture

StatusFileSize
new2.75 KB

The \Drupal\minisite\LegacyWrapper is the helper class to deal with deprecated codes between Drupal versions.

This class will be removed after Drupal 8.7.x is no longer supported.

As some of the replacements of deprecated functions are not available in Drupal 8.7.x and earlier version, so we do need this class in place to deal with the compatibility issues that works for all Drupal 8 versions.

Here is the patch to fix the issue for function file_uri_target()

alex.skrypnyk’s picture

alex.skrypnyk’s picture

Version: 8.x-1.x-dev » 8.x-1.3
Assigned: Unassigned » alex.skrypnyk
Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

alex.skrypnyk’s picture