interface CommentItemInterface
Same name and namespace in other branches
- 11.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
- 9 core/modules/comment/src/Plugin/Field/FieldType/CommentItemInterface.php \Drupal\comment\Plugin\Field\FieldType\CommentItemInterface
- 8.9.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
2 files declare their use of CommentItemInterface
- CommentItemTest.php in core/
modules/ comment/ tests/ src/ Kernel/ CommentItemTest.php - MigrateNodeTest.php in core/
modules/ node/ tests/ src/ Kernel/ Migrate/ d7/ MigrateNodeTest.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.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0.
* Use \Drupal\comment\CommentingStatus::Hidden instead.
*
* @see https://www.drupal.org/node/3547362
*/
const HIDDEN = 0;
/**
* Comments for this entity are closed.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0.
* Use \Drupal\comment\CommentingStatus::Closed instead.
*
* @see https://www.drupal.org/node/3547362
*/
const CLOSED = 1;
/**
* Comments for this entity are open.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0.
* Use \Drupal\comment\CommentingStatus::Open instead.
*
* @see https://www.drupal.org/node/3547362
*/
const OPEN = 2;
/**
* Comment form should be displayed on a separate page.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0.
* Use \Drupal\comment\FormLocation::SeparatePage instead.
*
* @see https://www.drupal.org/node/3550055
*/
const FORM_SEPARATE_PAGE = 0;
/**
* Comment form should be shown below post or list of comments.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0.
* Use \Drupal\comment\FormLocation::Below instead.
*
* @see https://www.drupal.org/node/3550055
*/
const FORM_BELOW = 1;
}
Members
| Title Sort descending | Deprecated | Modifiers | Object type | Summary |
|---|---|---|---|---|
| CommentItemInterface::CLOSED | Deprecated | constant | Comments for this entity are closed. | |
| CommentItemInterface::FORM_BELOW | Deprecated | constant | Comment form should be shown below post or list of comments. | |
| CommentItemInterface::FORM_SEPARATE_PAGE | Deprecated | constant | Comment form should be displayed on a separate page. | |
| CommentItemInterface::HIDDEN | Deprecated | constant | Comments for this entity are hidden. | |
| CommentItemInterface::OPEN | Deprecated | 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.