function MediaInterface::setCreatedTime

Same name in other branches
  1. 9 core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::setCreatedTime()
  2. 8.9.x core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::setCreatedTime()
  3. 11.x 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);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.