function CommentManagerInterface::addBodyField

Same name in other branches
  1. 9 core/modules/comment/src/CommentManagerInterface.php \Drupal\comment\CommentManagerInterface::addBodyField()
  2. 8.9.x core/modules/comment/src/CommentManagerInterface.php \Drupal\comment\CommentManagerInterface::addBodyField()
  3. 10 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\comment

Code

public function addBodyField($comment_type);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.