You are here

public function PhotosImage::getCreatedTime in Album Photos 8.5

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

Gets the image creation timestamp.

Return value

int Creation timestamp of the image.

Overrides PhotosImageInterface::getCreatedTime

File

src/Entity/PhotosImage.php, line 286

Class

PhotosImage
Defines the photos image entity class.

Namespace

Drupal\photos\Entity

Code

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