public function WebformSubmission::getCreatedTime in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/WebformSubmission.php \Drupal\webform\Entity\WebformSubmission::getCreatedTime()
Returns the time that the submission was created.
Return value
int The timestamp of when the submission was created.
Overrides WebformSubmissionInterface::getCreatedTime
File
- src/
Entity/ WebformSubmission.php, line 274
Class
- WebformSubmission
- Defines the WebformSubmission entity.
Namespace
Drupal\webform\EntityCode
public function getCreatedTime() {
if (isset($this
->get('created')->value)) {
return $this
->get('created')->value;
}
return NULL;
}