Render the comment
This is the default rendering for development/testing/demonstration purposes
It may be used for production, but only if it meets your needs already. Typically you'll want to render the comments using your own code in your templates.
Usage
// basic usage
$string = $commentList->renderItem(Comment $comment);
// usage with all arguments
$string = $commentList->renderItem(Comment $comment, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
comment | Comment | |
options (optional) | array |
Return value
string
See Also
CommentList methods and properties
API reference based on ProcessWire core version 3.0.236