Closed (fixed)
Project:
User Restrictions
Version:
2.0.x-dev
Component:
Code
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
18 Oct 2025 at 15:13 UTC
Updated:
6 Nov 2025 at 08:19 UTC
Jump to comment: Most recent
The form classes and the other entity classes are not supposed to be used from other modules as base classes.
Mark the following classes internal.
Drupal\user_restriction\Form\RestrictionDisableFormDrupal\user_restriction\Form\RestrictionEnableFormDrupal\user_restriction\Form\UserRestrictionsAddFormDrupal\user_restriction\Form\UserRestrictionsDeleteFormDrupal\user_restriction\Form\UserRestrictionsEditFormDrupal\user_restriction\Form\UserRestrictionsFormBaseDrupal\user_restriction\UserRestrictionsListBuilderDrupal\user_restriction\UserRestrictionsManagerDrupal\user_restriction\UserRestrictionTypeManagerStart 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
avpadernoComment #4
avpadernoComment #6
avpadernoComment #9
avpadernoComment #11
avpadernoComment #14
avpadernoComment #15
avpadernoThis change has been back ported to the 2.0.x to give it more visibility. I cannot say how much contributed or custom modules implements user restriction plugins, but I would like this is to be a well visible change.
This change will be disruptive only on the 4.0.x, as the old classes will no longer be available. Hopefully, there will be enough time before that.