public function WebformSubmission::setCreatedTime in Webform 8.5
Same name and namespace in other branches
- 6.x src/Entity/WebformSubmission.php \Drupal\webform\Entity\WebformSubmission::setCreatedTime()
Sets the creation date of the submission.
Parameters
int $created: The timestamp of when the submission was created.
Return value
$this
Overrides WebformSubmissionInterface::setCreatedTime
File
- src/
Entity/ WebformSubmission.php, line 284
Class
- WebformSubmission
- Defines the WebformSubmission entity.
Namespace
Drupal\webform\EntityCode
public function setCreatedTime($created) {
$this
->set('created', $created);
return $this;
}