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