public function Log::setCreatedTime in Log entity 2.x
Same name and namespace in other branches
- 8 src/Entity/Log.php \Drupal\log\Entity\Log::setCreatedTime()
Sets the log creation timestamp.
Parameters
int $timestamp: Creation timestamp of the log.
Return value
\Drupal\log\Entity\LogInterface The log entity.
Overrides LogInterface::setCreatedTime
File
- src/
Entity/ Log.php, line 126
Class
- Log
- Defines the Log entity.
Namespace
Drupal\log\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}