Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
php drupal-check.phar modules/contrib/view_mode_page/
14/14 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ ---------------------------------------------------
Line src/Form/PatternEditForm.php
------ ---------------------------------------------------
294 Call to deprecated function drupal_set_message().
------ ---------------------------------------------------
[ERROR] Found 1 error
Comment | File | Size | Author |
---|---|---|---|
#2 | deprecated-3091325-2.patch | 633 bytes | Sergiu Stici |
Comments
Comment #2
Sergiu Stici CreditAttribution: Sergiu Stici at FFW commentedHere's the patch, please review.
Comment #3
bbombachiniPatch applies evenly and remove deprecated code warning.
Comment #4
bbombachiniComment #5
VladimirAus### modules/contrib/view_mode_page/view_mode_page.info.yml
Line: 0
Add core_version_requirement: ^8 || ^9 to view_mode_page.info.yml to designate that the module is compatible with Drupal 9. See https://drupal.org/node/3070687.
### modules/contrib/view_mode_page/src/PathProcessor/DynamicPathProcessor.php
Line: 68
Parameter $alias_manager of method Drupal\view_mode_page\PathProcessor\DynamicPathProcessor::__construct() has typehint with deprecated interface Drupal\Core\Path\AliasManagerInterface. Deprecated in drupal:8.8.0 and is removed from drupal:9.0.0. Use Drupal\path_alias\AliasManagerInterface.
Comment #6
VladimirAusAdded related issue.
Comment #7
VladimirAusRelated issue #3124738 fixes report problems.
Comment #8
VladimirAus