Closed (fixed)
Project:
Comment limit
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
26 Aug 2016 at 08:02 UTC
Updated:
3 Mar 2021 at 05:44 UTC
Jump to comment: Most recent
The D8 version for this module is avalaible at -> https://github.com/Insasse/comment_limit/tree/8.x
It is an early version please be patient and test it locally.
Comments
Comment #2
didebruI've also tested it with 8.2.x-dev and create a seperate branch to track issues for this version , too.
Comment #3
dawehnerConceptually its a bit weird that we are doing something on
hook_entity_insert(), see https://github.com/Insasse/comment_limit/blob/8.x/comment_limit.module#L107I think a better approach would be to use a constrain, see https://www.drupalwatchdog.com/volume-5/issue-2/introducing-drupal-8s-en... for a detailed description about them.
Comment #4
didebruSo you want me to replace this hook , but with what? *sigh* I don't get it.
Yay I did it and it works just fine :)
Comment #5
didebruActually sanduhrs had a great idea.
I should disable/override the form when the limit for node/user is reached instead of let the user fill out and than say "No ur comment and work was for nothing".
Comment #6
didebruI pushed my changes and it works pretty good :)
Comment #7
ivnish