public function EckEntity::getCreatedTime in Entity Construction Kit (ECK) 8
Returns the time that the entity was created.
Return value
int|null The timestamp of when the entity was created or NULL if the "created" field does not exist.
Overrides EckEntityInterface::getCreatedTime
File
- src/
Entity/ EckEntity.php, line 131
Class
- EckEntity
- Defines the ECK entity.
Namespace
Drupal\eck\EntityCode
public function getCreatedTime() {
if ($this
->hasField('created')) {
return $this
->get('created')->value;
}
return NULL;
}