1 node.entity.inc Node::__construct(array $values = array())

Create a new Node instance.

Overrides Entity::__construct

File

core/modules/node/node.entity.inc, line 162
Entity controller and class for nodes.

Class

Node
Defines the node entity class.

Code

function __construct(array $values = array()) {
  parent::__construct($values);

  // Set the created time to now.
  if (empty($this->created)) {
    $this->created = REQUEST_TIME;
  }
}