Closed (fixed)
Project:
User Restrictions
Version:
3.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Oct 2025 at 11:34 UTC
Updated:
22 Oct 2025 at 20:59 UTC
Jump to comment: Most recent
The default property for the ID is $id. The only reason to use a different one is for backward compatibility with previous releases, which is what the Node module does, for example, by using $nid as ID property.
This is not the case for the User Restrictions module, which now uses $name for the ID, but it used $urid in Drupal 7.
Replace UserRestrictions::$name with UserRestrictions::$id and remove UserRestrictions::id() to use the parent class's method.
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 #3
avpadernoComment #5
avpadernoComment #6
avpaderno