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.
The use case for this drupal_alter() is that a module may wish to have another module's access decisions ignored.
Let's see what testbot thinks about it.
Comment | File | Size | Author |
---|---|---|---|
node-access-alter.patch | 2.38 KB | amitaibu | |
Comments
Comment #1
amitaibunode-access-alter.patch queued for re-testing.
Comment #2
amitaibuSetting new version.
Comment #3
amitaibunode-access-alter.patch queued for re-testing.
Comment #4
valthebaldIs it still relevant, keeping in mind new hook_node_access_records_alter() and hook_node_grants_alter()?
Comment #5
Elijah Lynndrupal_alter() has been removed from D8.
#2301577: Remove drupal_alter() as it is deprecated
Comment #6
Elijah LynnIt appears to have been replaced by \Drupal\Core\Extension\ModuleHandler::alter which implements the Drupal/Core/Extension/ModuleHandlerInterface::alter() interface.
So maybe change the name of this issue to reflect that?
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension...
https://api.drupal.org/api/drupal/core%21lib%21Drupal%21Core%21Extension...