You are here

public function PhotosImage::setCreatedTime in Album Photos 6.0.x

Same name and namespace in other branches
  1. 8.5 src/Entity/PhotosImage.php \Drupal\photos\Entity\PhotosImage::setCreatedTime()

Sets the image creation timestamp.

Parameters

int $timestamp: The image creation timestamp.

Return value

$this The called image entity.

Overrides PhotosImageInterface::setCreatedTime

File

src/Entity/PhotosImage.php, line 293

Class

PhotosImage
Defines the photos image entity class.

Namespace

Drupal\photos\Entity

Code

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