By virag.jain on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
11.4.x
Introduced in version:
11.4.0
Description:
The procedural functions node_access_rebuild() and node_access_needs_rebuild() have been deprecated.
Use \Drupal::service('Drupal\node\NodeAccessRebuild')->needsRebuild() and \Drupal::service('Drupal\node\NodeAccessRebuild')->setNeedsRebuild() instead of node_access_needs_rebuild()
Use \Drupal::service('Drupal\node\NodeAccessRebuild')->rebuild() instead of node_access_rebuild()
The internal functions _node_access_rebuild_batch_operation() and _node_access_rebuild_batch_finished() have also been removed and replaced with static methods in the new service class NodeAccessRebuild.
Impacts:
Module developers