You are here

function node_authlink_entity_type_alter in Node authorize link 8

Implements hook_entity_type_alter().

File

./node_authlink.module, line 501
Node Authlink hooks and alters.

Code

function node_authlink_entity_type_alter(array &$entity_types) {
  if ($entity_types['node'] instanceof ContentEntityTypeInterface) {
    $entity_types['node']
      ->setAccessClass(NodeAuthlinkNodeAccessControlHandler::class);
  }
}