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