You are here

public function Node::setRevisionCreationTime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::setRevisionCreationTime()

Sets the node revision creation timestamp.

Parameters

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

Return value

\Drupal\node\NodeInterface The called node entity.

Overrides NodeInterface::setRevisionCreationTime

File

core/modules/node/src/Entity/Node.php, line 301
Contains \Drupal\node\Entity\Node.

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

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