function ajax_comments_entity_type_alter in AJAX Comments 8
Implements hook_entity_type_alter().
File
- ./
ajax_comments.module, line 345 - AJAX comments module file.
Code
function ajax_comments_entity_type_alter(array &$entity_types) {
// Alter the comment entity definition to use this module's forms.
$entity_types['comment']
->setFormClass('default', 'Drupal\\ajax_comments\\Form\\AjaxCommentsForm');
$entity_types['comment']
->setFormClass('delete', 'Drupal\\ajax_comments\\Form\\AjaxCommentsDeleteForm');
}