public function Media::setCreatedTime in Drupal 10
Same name and namespace in other branches
- 8 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::setCreatedTime()
- 9 core/modules/media/src/Entity/Media.php \Drupal\media\Entity\Media::setCreatedTime()
Sets the media item creation timestamp.
@todo Remove and use the new interface when #2833378 is done.
Parameters
int $timestamp: The media creation timestamp.
Return value
$this The called media item.
Overrides MediaInterface::setCreatedTime
See also
https://www.drupal.org/node/2833378
File
- core/
modules/ media/ src/ Entity/ Media.php, line 129
Class
- Media
- Defines the media entity class.
Namespace
Drupal\media\EntityCode
public function setCreatedTime($timestamp) {
return $this
->set('created', $timestamp);
}