public Comment::getHostname()
Returns the comment author's hostname.
Return value
string The hostname of the author of the comment.
Overrides CommentInterface::getHostname
File
- core/modules/comment/src/Entity/Comment.php, line 440
Class
- Comment
- Defines the comment entity class.
Namespace
Drupal\comment\Entity
Code
1 2 3 | public function getHostname() { return $this ->get( 'hostname' )->value; } |
Please login to continue.