You are here

public function MediaInterface::setCreatedTime in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::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.

See also

https://www.drupal.org/node/2833378

1 method overrides MediaInterface::setCreatedTime()
Media::setCreatedTime in core/modules/media/src/Entity/Media.php
Sets the media item creation timestamp.

File

core/modules/media/src/MediaInterface.php, line 57

Class

MediaInterface
Provides an interface defining an entity for media items.

Namespace

Drupal\media

Code

public function setCreatedTime($timestamp);