You are here

public function Message::getCreatedTime in Message 8

Retrieve the time stamp of the message.

Return value

int The Unix timestamp.

Overrides MessageInterface::getCreatedTime

File

src/Entity/Message.php, line 91

Class

Message
Defines the Message entity class.

Namespace

Drupal\message\Entity

Code

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