You are here

function comment_perm_field_formatter_info_alter in Comment Permissions 8

Implements hook_field_formatter_info_alter().

File

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

Code

function comment_perm_field_formatter_info_alter(array &$info) {
  if (isset($info['comment_default'])) {
    $info['comment_default']['class'] = 'Drupal\\comment_perm\\Plugin\\Field\\FieldFormatter\\CommentDefaultFormatter';
  }
}