You are here

public function AvatarPreview::getCreatedTime in Avatar Kit 8

Gets the creation time of the avatar preview.

Return value

int Timestamp of the creation date.

Overrides AvatarPreviewInterface::getCreatedTime

File

src/Entity/AvatarPreview.php, line 77

Class

AvatarPreview
Defines the avatar preview entity.

Namespace

Drupal\avatars\Entity

Code

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