You are here

public function MediaGallery::setCreatedTime in Media Gallery 8

Sets the media gallery creation timestamp.

Parameters

int $timestamp: The media gallery creation timestamp.

Return value

\Drupal\media_gallery\MediaGalleryInterface The called media gallery entity.

Overrides MediaGalleryInterface::setCreatedTime

File

src/Entity/MediaGallery.php, line 111

Class

MediaGallery
Defines the media gallery entity class.

Namespace

Drupal\media_gallery\Entity

Code

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