Same name and namespace in other branches
- 8.9.x core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface
- 9 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
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
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
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
CommentItemInterface:: |
constant | Comments for this entity are closed. | ||
CommentItemInterface:: |
constant | Comment form should be shown below post or list of comments. | ||
CommentItemInterface:: |
constant | Comment form should be displayed on a separate page. | ||
CommentItemInterface:: |
constant | Comments for this entity are hidden. | ||
CommentItemInterface:: |
constant | Comments for this entity are open. |