New answers tagged comments
6
votes
Accepted
How do I get a list the comment types' machine name?
Comment types are an entity type, so you can load them as with any entity type, and get the machine name from CommentType::id():
$comment_types = array_map(
function ($comment_type) {
return $...
Top 50 recent answers are included
Related Tags
comments × 8327 × 329
8 × 105
theming × 103
views × 99
nodes × 95
forms × 73
users × 69
entities × 46
rules × 36
6 × 27
hooks × 19
ajax × 19
rating × 16
9 × 12
database × 11
paging × 11
javascript × 10
media × 10
navigation × 10
blocks × 9
advertising × 9
notifications × 8
emails × 7
panels × 7