You are here

public function Pet::getCreatedTime in Previewable email templates 8.3

Gets the Pet creation timestamp.

Return value

int Creation timestamp of the Pet.

Overrides PetInterface::getCreatedTime

File

src/Entity/Pet.php, line 458

Class

Pet
Defines the pet entity.

Namespace

Drupal\pet\Entity

Code

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