You are here

function comment_perm_field_info_alter in Comment Permissions 8

Implements hook_field_info_alter().

File

./comment_perm.module, line 37
Control commenting permissions per comment type.

Code

function comment_perm_field_info_alter(array &$info) {
  if (isset($info['comment'])) {
    $info['comment']['list_class'] = 'Drupal\\comment_perm\\CommentFieldItemList';
  }
}