public CommentManager::addBodyField($comment_type_id)
Creates a comment_body field.
Parameters
string $comment_type: The comment bundle.
Overrides CommentManagerInterface::addBodyField
File
core/modules/comment/src/CommentManager.php, line 113
Class
CommentManager Comment manager contains common functions to manage comment fields.
Namespace
Drupal\comment
Code
public function addBodyField($comment_type_id) {
if (!FieldConfig::loadByName('comment', $comment_type_id, 'comment_body'))