In Drupal 8, node access storage is moved into a proper service, which makes it swappable using dependency injection.
In cleaning up parts of the code for proper separation of concerns, the legacy function
node_access_acquire_grants() has been removed. It's replacement method
acquireGrants() gathers and reports node access grants. To gather and write grants to the database, you must now call
Note that these calls occur as part of the default node save routine. Both functions remain internal API calls, and developers are discouraged from calling either function directly.
If you wish to replace the default node access implementation, you may implement NodeAccessControlHandlerInterface and NodeGrantDatabaseStorageInterface.