You are here

public function Event::getCreatedTime in Event 8

Gets the Event creation timestamp.

Return value

int Creation timestamp of the Event.

Overrides EventInterface::getCreatedTime

File

src/Entity/Event.php, line 166

Class

Event
Defines the Event entity.

Namespace

Drupal\event\Entity

Code

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