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      │      │                                                              │
└──────────┴──────┴──────────────────────────────────────────────────────────────┘
CommentFileSizeAuthor
#2 restrict_node_view_page-3245685-2.patch827 bytesrokkay
Command icon 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:

    Support from Acquia helps fund testing for Drupal Acquia logo

    Comments

    rokkay created an issue. See original summary.

    rokkay’s picture

    Here the patch.

    rokkay’s picture

    rokkay’s picture

    Issue summary: View changes
    rokkay’s picture

    Issue summary: View changes
    apaderno’s picture

    Category: Plan » Task
    Status: Active » Needs review
    kurinjiselvan v’s picture

    Version: 8.x-2.0-alpha2 » 8.x-1.1
    Status: Needs review » Fixed

    Status: Fixed » Closed (fixed)

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