function Node::getCreatedTime

Same name in other branches
  1. 9 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::getCreatedTime()
  2. 10 core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::getCreatedTime()
  3. 11.x core/modules/node/src/Entity/Node.php \Drupal\node\Entity\Node::getCreatedTime()

Overrides NodeInterface::getCreatedTime

File

core/modules/node/src/Entity/Node.php, line 216

Class

Node
Defines the node entity class.

Namespace

Drupal\node\Entity

Code

public function getCreatedTime() {
    return $this->get('created')->value;
}

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