public function CommentItem::isEmpty in Zircon Profile 8.0
Same name and namespace in other branches
- 8 core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php \Drupal\comment\Plugin\Field\FieldType\CommentItem::isEmpty()
Determines whether the data structure is empty.
Return value
bool TRUE if the data structure is empty, FALSE otherwise.
Overrides Map::isEmpty
File
- core/
modules/ comment/ src/ Plugin/ Field/ FieldType/ CommentItem.php, line 169 - Contains \Drupal\comment\Plugin\Field\FieldType\CommentItem.
Class
- CommentItem
- Plugin implementation of the 'comment' field type.
Namespace
Drupal\comment\Plugin\Field\FieldTypeCode
public function isEmpty() {
// There is always a value for this field, it is one of
// CommentItemInterface::OPEN, CommentItemInterface::CLOSED or
// CommentItemInterface::HIDDEN.
return FALSE;
}