function Node::setCreatedTime
Sets the node creation timestamp.
Parameters
int $timestamp: The node creation timestamp.
Return value
$this The called node entity.
Overrides NodeInterface::setCreatedTime
File
- 
              core/
modules/ node/ src/ Entity/ Node.php, line 241  
Class
- Node
 - Defines the node entity class.
 
Namespace
Drupal\node\EntityCode
public function setCreatedTime($timestamp) {
  $this->set('created', $timestamp);
  return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.