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/Motivation
In #3110296: Remove all @deprecated code from Drupal/Core/Access/ we intend to remove AccessResult::cacheUntilEntityChanges()
in Drupal 9. However, it was deprecated early in the D8 cycle and never had a trigger_error()
deprecation notice added to warn developers. We should add this now before it is removed.
Proposed resolution
Add trigger_error()
pointing developers to the change notice.
Remaining tasks
Patch, test, commit.
User interface changes
None
API changes
An already deprecated API will log a deprecation error.
Data model changes
None
Release notes snippet
Comment | File | Size | Author |
---|---|---|---|
#4 | 3111504-4.patch | 2.31 KB | andypost |
#4 | interdiff.txt | 980 bytes | andypost |
#3 | 3111504.patch | 2.29 KB | longwave |
Comments
Comment #2
longwaveComment #3
longwaveComment #4
andypostEntity class is deprecated and the method expects interface
PS: patch is the same as in related issue #3069028: Properly Deprecate Drupal\Core\Access\AccessResult::cacheUntilConfigurationChanges
Comment #5
BerdirLooks good.
Comment #6
catchCommitted c2ee4cd and pushed to 8.9.x. Cherry-picked to 8.8.x. Thanks!