1 node.entity.inc | public Node::createDuplicate() |
Overrides Entity::createDuplicate().
Overrides Entity::createDuplicate
File
- core/
modules/ node/ node.entity.inc, line 388 - Entity controller and class for nodes.
Class
- Node
- Defines the node entity class.
Code
public function createDuplicate() {
$duplicate = clone $this;
$duplicate->nid = NULL;
$duplicate->vid = NULL;
return $duplicate;
}