public function CommentManagerInterface::addBodyField in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/src/CommentManagerInterface.php \Drupal\comment\CommentManagerInterface::addBodyField()
- 9 core/modules/comment/src/CommentManagerInterface.php \Drupal\comment\CommentManagerInterface::addBodyField()
Creates a comment_body field.
Parameters
string $comment_type: The comment bundle.
File
- core/
modules/ comment/ src/ CommentManagerInterface.php, line 43
Class
- CommentManagerInterface
- Comment manager contains common functions to manage comment fields.
Namespace
Drupal\commentCode
public function addBodyField($comment_type);