Comment module introduced various constants in 2005 when enums in php didn't exist. See #21221: Make status values in comment.module defined constants for readability → and #34295: comment configure bug (Default display mode and Comment controls) → for example.
CommentInterface - NOT_PUBLISHED and PUBLISHED moves to a CommentStatus enum with cases Published and NotPublished.
CommentInterface - ANONYMOUS_MAYNOT_CONTACT, ANONYMOUS_MAY_CONTACT and ANONYMOUS_MUST_CONTACT moves to a AnonymousContact enum with cases MayNot, May and Must.
CommentItemInterface - HIDDEN, CLOSED and OPEN moves to a DisplaySettings enum with cases Hidden, Closed and Open.
CommentItemInterface - FORM_SEPARATE_PAGE and FORM_BELOW moves to a FormSettings enum with cases Page and Below.
CommentManagerInterface - COMMENT_MODE_FLAT and COMMENT_MODE_THREADED moves to a CommentMode enum with cases Flat and Threaded.
Active
11.0 🔥
comment.module