public Node::setCreatedTime($timestamp)
Sets the node creation timestamp.
Parameters
int $timestamp: The node creation timestamp.
Return value
\Drupal\node\NodeInterface The called node entity.
Overrides NodeInterface::setCreatedTime
File
- core/modules/node/src/Entity/Node.php, line 211
Class
- Node
- Defines the node entity class.
Namespace
Drupal\node\Entity
Code
1 2 3 4 | public function setCreatedTime( $timestamp ) { $this ->set( 'created' , $timestamp ); return $this ; } |
Please login to continue.