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.
Problem
Module not ready for Drupal 9.
CONTRIBUTED PROJECTS
--------------------------------------------------------------------------------
Restrict node view page access 8.x-2.0-alpha2
Scanned on Lun, 25/10/2021 - 08:28.
1 error found. 1 warning found.
web/modules/contrib/restrict_node_view_page/src/NodePermissions.php:
┌─────────┬──────┬────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├─────────┼──────┼────────────────────────────────────────────────────────────┤
│ Fix now │ 15 │ Usage of deprecated trait │
│ │ │ Drupal\Core\Routing\UrlGeneratorTrait in class │
│ │ │ Drupal\restrict_node_view_page\NodePermissions. Deprecated │
│ │ │ in drupal:8.0.0 and is removed from drupal:9.0.0. Use │
│ │ │ Drupal\Core\Url instead. │
│ │ │ │
└─────────┴──────┴────────────────────────────────────────────────────────────┘
web/modules/contrib/restrict_node_view_page/restrict_node_view_page.info.yml:
┌──────────┬──────┬──────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼──────────────────────────────────────────────────────────────┤
│ Comproba │ 0 │ Add core_version_requirement: ^8 || ^9 to designate that the │
│ r │ │ module is compatible with Drupal 9. See │
│ manualme │ │ https://drupal.org/node/3070687. │
│ nte │ │ │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘
Comment | File | Size | Author |
---|---|---|---|
#2 | restrict_node_view_page-3245685-2.patch | 827 bytes | rokkay |
Issue fork restrict_node_view_page-3245685
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
rokkay CreditAttribution: rokkay at Solucionex Consultoria y Desarrollo commentedHere the patch.
Comment #3
rokkay CreditAttribution: rokkay commentedComment #4
rokkay CreditAttribution: rokkay commentedComment #5
rokkay CreditAttribution: rokkay commentedComment #6
apadernoComment #7
kurinjiselvan v CreditAttribution: kurinjiselvan v at Congruent Info Tech commented