You are here

interface CommentItemInterface in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

31 files declare their use of CommentItemInterface
comment.module in core/modules/comment/comment.module
Enables users to comment on published content.
CommentController.php in core/modules/comment/src/Controller/CommentController.php
Contains \Drupal\comment\Controller\CommentController.
CommentDefaultFormatter.php in core/modules/comment/src/Plugin/Field/FieldFormatter/CommentDefaultFormatter.php
Contains \Drupal\comment\Plugin\Field\FieldFormatter\CommentDefaultFormatter.
CommentFieldsTest.php in core/modules/comment/src/Tests/CommentFieldsTest.php
Contains \Drupal\comment\Tests\CommentFieldsTest.
CommentForm.php in core/modules/comment/src/CommentForm.php
Contains \Drupal\comment\CommentForm.

... See full list

File

core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php, line 13
Contains \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface.

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.