Same name and namespace in other branches
  1. 8.9.x core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface
  2. 9 core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface

Interface definition for Comment items.

Hierarchy

Expanded class hierarchy of CommentItemInterface

All classes that implement CommentItemInterface

38 files declare their use of CommentItemInterface
comment.module in core/modules/comment/comment.module
Enables users to comment on published content.
CommentAccessControlHandler.php in core/modules/comment/src/CommentAccessControlHandler.php
CommentAdminTest.php in core/modules/comment/tests/src/Functional/Views/CommentAdminTest.php
CommentBaseFieldTest.php in core/modules/comment/tests/src/Kernel/CommentBaseFieldTest.php
CommentController.php in core/modules/comment/src/Controller/CommentController.php

... See full list

File

core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php, line 8

Namespace

Drupal\comment\Plugin\Field\FieldType
View source
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;

}

Members

Namesort descending Modifiers Type Description Overrides
CommentItemInterface::CLOSED constant Comments for this entity are closed.
CommentItemInterface::FORM_BELOW constant Comment form should be shown below post or list of comments.
CommentItemInterface::FORM_SEPARATE_PAGE constant Comment form should be displayed on a separate page.
CommentItemInterface::HIDDEN constant Comments for this entity are hidden.
CommentItemInterface::OPEN constant Comments for this entity are open.