public function Task::setCreatedTime in General Data Protection Regulation 8
Same name and namespace in other branches
- 8.2 modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::setCreatedTime()
- 3.0.x modules/gdpr_tasks/src/Entity/Task.php \Drupal\gdpr_tasks\Entity\Task::setCreatedTime()
Sets the Task creation timestamp.
Parameters
int $timestamp: The Task creation timestamp.
Return value
\Drupal\gdpr_tasks\Entity\TaskInterface The called Task entity.
Overrides TaskInterface::setCreatedTime
File
- modules/
gdpr_tasks/ src/ Entity/ Task.php, line 79
Class
- Task
- Defines the Task entity.
Namespace
Drupal\gdpr_tasks\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}