CommentItemInterface.php

Same filename and directory in other branches
  1. 9 core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php
  2. 8.9.x core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php
  3. 10 core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php

Namespace

Drupal\comment\Plugin\Field\FieldType

File

core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php

View source
<?php

namespace Drupal\comment\Plugin\Field\FieldType;


/**
 * Interface definition for Comment items.
 */
interface CommentItemInterface {
    
    /**
     * Comments for this entity are hidden.
     */
    const HIDDEN = 0;
    
    /**
     * Comments for this entity are closed.
     */
    const CLOSED = 1;
    
    /**
     * Comments for this entity are open.
     */
    const OPEN = 2;
    
    /**
     * Comment form should be displayed on a separate page.
     */
    const FORM_SEPARATE_PAGE = 0;
    
    /**
     * Comment form should be shown below post or list of comments.
     */
    const FORM_BELOW = 1;

}

Interfaces

Title Deprecated Summary
CommentItemInterface Interface definition for Comment items.

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.