You are here

public function Log::getCreatedTime in Log entity 8

Same name and namespace in other branches
  1. 2.x src/Entity/Log.php \Drupal\log\Entity\Log::getCreatedTime()

Gets the log creation timestamp.

Return value

int Creation timestamp of the log.

Overrides LogInterface::getCreatedTime

File

src/Entity/Log.php, line 148
Contains \Drupal\log\Entity\Log.

Class

Log
Defines the Log entity.

Namespace

Drupal\log\Entity

Code

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