I have a content type that is used for temporary access. The node is created and has an expiration date; it's deleted after that date. On this node there is a user reference field; only the users added to this field should have access to viewing this node. I can't find a hook to handle this access. In Drupal 7 I used hook_node_access()
, but it doesn't seem to exist for Drupal 9.
The only information I'm looking for is how to tap into the access privileges for a given node type. After that I can handle the logic of what users are contained in the reference field.