RevisionLogEntityTrait::setRevisionCreationTime

public RevisionLogEntityTrait::setRevisionCreationTime($timestamp)

Implements \Drupal\Core\Entity\RevisionLogInterface::setRevisionCreationTime().

Overrides RevisionLogInterface::setRevisionCreationTime

File

core/lib/Drupal/Core/Entity/RevisionLogEntityTrait.php, line 65

Class

RevisionLogEntityTrait
Provides a trait for accessing revision logging and ownership information.

Namespace

Drupal\Core\Entity

Code

public function setRevisionCreationTime($timestamp) {
  $this->revision_created->value = $timestamp;
  return $this;
}
doc_Drupal
2016-10-29 09:38:32
Comments
Leave a Comment

Please login to continue.