public CommentInterface::getAuthorName()
Returns the comment author's name.
For anonymous authors, this is the value as typed in the comment form.
Return value
string The name of the comment author.
File
- core/modules/comment/src/CommentInterface.php, line 110
Class
- CommentInterface
- Provides an interface defining a comment entity.
Namespace
Drupal\comment
Code
public function getAuthorName();
Please login to continue.