By roderik on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Introduced in version:
8.0.0-alpha14
Description:
Comment (threading) mode constants used to be in comment.module but have now moved to CommentManagerInterface.
Example for using them:
D7
if ($mode == COMMENT_MODE_FLAT) {
...
}
D8
use Drupal\comment\CommentManagerInterface;
if ($mode == CommentManagerInterface::COMMENT_MODE_FLAT) {
...
}
Impacts:
Module developers