view_profiles_perms.module in View profiles permissions 8
Same filename and directory in other branches
Restricts viewing user profiles based on user roles.
File
view_profiles_perms.moduleView source
<?php
/**
* @file
* Restricts viewing user profiles based on user roles.
*/
/**
* Implements hook_entity_type_alter().
*/
function view_profiles_perms_entity_type_alter(array &$entity_types) {
$entity_types['user']
->setHandlerClass('access', 'Drupal\\view_profiles_perms\\ViewProfilesPermsAccessHandler');
}
Functions
Name | Description |
---|---|
view_profiles_perms_entity_type_alter | Implements hook_entity_type_alter(). |