1<?php 2 3namespace Drupal\comment\Plugin\Field\FieldType; 4 5/** 6 * Interface definition for Comment items. 7 */ 8interface CommentItemInterface { 9 10 /** 11 * Comments for this entity are hidden. 12 */ 13 const HIDDEN = 0; 14 15 /** 16 * Comments for this entity are closed. 17 */ 18 const CLOSED = 1; 19 20 /** 21 * Comments for this entity are open. 22 */ 23 const OPEN = 2; 24 25 /** 26 * Comment form should be displayed on a separate page. 27 */ 28 const FORM_SEPARATE_PAGE = 0; 29 30 /** 31 * Comment form should be shown below post or list of comments. 32 */ 33 const FORM_BELOW = 1; 34 35} 36