interface CommentItemInterface
Same name in other branches
- 8.9.x core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface
- 10 core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface
- 11.x core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface
Interface definition for Comment items.
Hierarchy
- interface \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface
Expanded class hierarchy of CommentItemInterface
All classes that implement CommentItemInterface
37 files declare their use of CommentItemInterface
- BigPipeRegressionTest.php in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ BigPipeRegressionTest.php - comment.module in core/
modules/ comment/ comment.module - Enables users to comment on published content.
- 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
File
-
core/
modules/ comment/ src/ Plugin/ Field/ FieldType/ CommentItemInterface.php, line 8
Namespace
Drupal\comment\Plugin\Field\FieldTypeView 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
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
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. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.