You are here

public function EntityRevisionLogTrait::setRevisionCreationTime in Entity API 8.0

File

src/Revision/EntityRevisionLogTrait.php, line 63
Contains \Drupal\entity\Revision\EntityRevisionLogTrait.

Class

EntityRevisionLogTrait
Provides a trait implementing \Drupal\entity\Revision\EntityRevisionLogInterface.

Namespace

Drupal\entity\Revision

Code

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