public function Event::setCreatedTime in Event 8
Sets the Event creation timestamp.
Parameters
int $timestamp: The Event creation timestamp.
Return value
\Drupal\event\Entity\EventInterface The called Event entity.
Overrides EventInterface::setCreatedTime
File
- src/
Entity/ Event.php, line 173
Class
- Event
- Defines the Event entity.
Namespace
Drupal\event\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}