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