diff --git a/core/modules/comment/comment.field.inc b/core/modules/comment/comment.field.inc index abef815..d5562ff 100644 --- a/core/modules/comment/comment.field.inc +++ b/core/modules/comment/comment.field.inc @@ -30,7 +30,8 @@ function comment_field_info() { 'preview' => DRUPAL_OPTIONAL, ), 'default_widget' => 'comment_default', - 'default_formatter' => 'comment_default' + 'default_formatter' => 'comment_default', + 'field item class' => 'Drupal\comment\Type\CommentItem', ) ); } diff --git a/core/modules/comment/lib/Drupal/comment/Plugin/Type/CommentItem.php b/core/modules/comment/lib/Drupal/comment/Plugin/Type/CommentItem.php new file mode 100644 index 0000000..b73214c --- /dev/null +++ b/core/modules/comment/lib/Drupal/comment/Plugin/Type/CommentItem.php @@ -0,0 +1,40 @@ + 'integer', + 'label' => t('Comment status value'), + ); + } + return static::$propertyDefinitions; + } + +}