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.
When tested with Upgrade Status module, I see a number of warning messages.
CUSTOM PROJECTS
--------------------------------------------------------------------------------
Field Permissions
Scanned on Sat, 06/06/2020 - 17:44.
4 warnings found.
web/modules/contrib/field_permissions/src/Controller/FieldPermissionsController.
php:
┌──────────┬──────┬────────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼────────────────────────────────────────────────────────────┤
│ Check │ 98 │ Call to deprecated method getList() of class │
│ manually │ │ Drupal\field_permissions\FieldPermissionsServiceInterface: │
│ │ │ This function will be removed before 8.x-2.0 │
│ │ │ │
│ Check │ 148 │ Call to deprecated method getPermissionsByRole() of class │
│ manually │ │ Drupal\field_permissions\FieldPermissionsServiceInterface: │
│ │ │ This function will be removed before 8.x-2.0 │
│ │ │ │
└──────────┴──────┴────────────────────────────────────────────────────────────┘
web/modules/contrib/field_permissions/src/Plugin/FieldPermissionType/CustomAcces
s.php:
┌──────────┬──────┬────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼────────────────────────────────────────────────────────┤
│ Check │ 106 │ Call to deprecated method getList() of class │
│ manually │ │ Drupal\field_permissions\FieldPermissionsService: This │
│ │ │ function will be removed before 8.x-2.0 │
│ │ │ │
└──────────┴──────┴────────────────────────────────────────────────────────┘
web/modules/contrib/field_permissions/tests/src/Functional/FieldPermissionsTestB
ase.php:
┌──────────┬──────┬────────────────────────────────────────────────────────┐
│ STATUS │ LINE │ MESSAGE │
├──────────┼──────┼────────────────────────────────────────────────────────┤
│ Check │ 141 │ Call to deprecated method getAllPermissions() of class │
│ manually │ │ Drupal\field_permissions\FieldPermissionsService: This │
│ │ │ function will be removed before 8.x-2.0 │
│ │ │ │
└──────────┴──────┴────────────────────────────────────────────────────────┘
Comment | File | Size | Author |
---|---|---|---|
#4 | issue-3148380-4.patch | 1.14 KB | dshumaker |
|
Comments
Comment #2
extect CreditAttribution: extect commentedThese are no functions from Drupal core, but from Field Permissions itself. Thus, field permissions does not use any deprecated functions from Drupal core. It just tells you Field Permissions will remove these functions in a future 8.x.-2.0 release of the module in case you are using these functions in some custom code.
--> Field permissions is fully compatible with Drupal 9
Comment #3
jhedstromIt would still be good to fix field permissions to not call its own deprecated methods I think.
Comment #4
dshumaker CreditAttribution: dshumaker at Phase2 commentedAttaching patch to take out deprecation messages.
Comment #6
jhedstromThanks! I think it makes sense to remove these deprecation annotations as they were added with no clear plan for replacing them, etc. If cleanup of removing these and refactoring is still needed, that can be done in a new issue.