function comment_views_plugins_row_alter

Implements hook_views_plugins_row_alter().

Replaces the generic row plugin by a custom one for comments.

See also

\Drupal\views\Plugin\views\row\EntityRow

File

drupal/core/modules/comment/comment.views.inc, line 560
Provide views data and handlers for comment.module.

Code

function comment_views_plugins_row_alter(array &$plugins) {
  $plugins['entity:comment']['class'] = 'Drupal\\comment\\Plugin\\views\\row\\CommentRow';
  $plugins['entity:comment']['module'] = 'comment';
}