public function OpignoAnswer::setCreatedTime in Opigno module 8
Same name and namespace in other branches
- 3.x src/Entity/OpignoAnswer.php \Drupal\opigno_module\Entity\OpignoAnswer::setCreatedTime()
Sets the Answer creation timestamp.
Parameters
int $timestamp: The Answer creation timestamp.
Return value
\Drupal\opigno_module\Entity\OpignoAnswerInterface The called Answer entity.
Overrides OpignoAnswerInterface::setCreatedTime
File
- src/
Entity/ OpignoAnswer.php, line 104
Class
- OpignoAnswer
- Defines the Answer entity.
Namespace
Drupal\opigno_module\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}