You are here

public function Media::setRevisionCreationTime in Media entity 8

Sets the entity revision creation timestamp.

Parameters

int $timestamp: The UNIX timestamp of when this revision was created.

Return value

$this

Overrides RevisionLogInterface::setRevisionCreationTime

File

src/Entity/Media.php, line 437

Class

Media
Defines the media entity class.

Namespace

Drupal\media_entity\Entity

Code

public function setRevisionCreationTime($timestamp) {
  $this->revision_timestamp->value = $timestamp;
  return $this;
}