function CommentInterface::getCreatedTime

Same name in other branches
  1. 9 core/modules/comment/src/CommentInterface.php \Drupal\comment\CommentInterface::getCreatedTime()
  2. 8.9.x core/modules/comment/src/CommentInterface.php \Drupal\comment\CommentInterface::getCreatedTime()
  3. 11.x core/modules/comment/src/CommentInterface.php \Drupal\comment\CommentInterface::getCreatedTime()

Returns the time that the comment was created.

Return value

int The timestamp of when the comment was created.

1 method overrides CommentInterface::getCreatedTime()
Comment::getCreatedTime in core/modules/comment/src/Entity/Comment.php
Returns the time that the comment was created.

File

core/modules/comment/src/CommentInterface.php, line 198

Class

CommentInterface
Provides an interface defining a comment entity.

Namespace

Drupal\comment

Code

public function getCreatedTime();

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