You are here

public function PrivateMessage::getCreatedTime in Private Message 8

Same name and namespace in other branches
  1. 8.2 src/Entity/PrivateMessage.php \Drupal\private_message\Entity\PrivateMessage::getCreatedTime()

Get the time at which the private message was created.

Return value

int A Unix timestamp indicating the time at which the private message was created.

Overrides PrivateMessageInterface::getCreatedTime

File

src/Entity/PrivateMessage.php, line 57

Class

PrivateMessage
Thee Private Message entity definition.

Namespace

Drupal\private_message\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}