You are here

public function AvatarPreview::setCreatedTime in Avatar Kit 8

Sets the creation time of the avatar preview.

Parameters

int $timestamp: Timestamp of the creation date.

Return value

\Drupal\avatars\AvatarPreviewInterface Return avatar preview for chaining.

Overrides AvatarPreviewInterface::setCreatedTime

File

src/Entity/AvatarPreview.php, line 84

Class

AvatarPreview
Defines the avatar preview entity.

Namespace

Drupal\avatars\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}