function NodeInterface::setCreatedTime

Same name in other branches
  1. 8.9.x core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setCreatedTime()
  2. 10 core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setCreatedTime()
  3. 11.x core/modules/node/src/NodeInterface.php \Drupal\node\NodeInterface::setCreatedTime()

Sets the node creation timestamp.

Parameters

int $timestamp: The node creation timestamp.

Return value

$this The called node entity.

1 method overrides NodeInterface::setCreatedTime()
Node::setCreatedTime in core/modules/node/src/Entity/Node.php
Sets the node creation timestamp.

File

core/modules/node/src/NodeInterface.php, line 90

Class

NodeInterface
Provides an interface defining a node entity.

Namespace

Drupal\node

Code

public function setCreatedTime($timestamp);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.