I'm using a contributed module that provides a custom entity. I would like to modify that entity and want to enable comments for this entity.
Does anybody know how to enable commens for custom entities?
Drupal Answers is a question and answer site for Drupal developers and administrators. It only takes a minute to sign up.Sign up to join this community
For Drupal 7, this module should do it - https://www.drupal.org/project/comments_entity
For Drupal 8, comments are available as a field for any entity type.
Wrote a blog post about it here: http://www.daggerhart.com/drupal-8-add-comments-custom-entity-type/