function MediaInterface::getCreatedTime

Same name in other branches
  1. 9 core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::getCreatedTime()
  2. 8.9.x core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::getCreatedTime()
  3. 10 core/modules/media/src/MediaInterface.php \Drupal\media\MediaInterface::getCreatedTime()

Returns the media item creation timestamp.

@todo Remove and use the new interface when #2833378 is done.

Return value

int Creation timestamp of the media item.

See also

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

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

File

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

Class

MediaInterface
Provides an interface defining an entity for media items.

Namespace

Drupal\media

Code

public function getCreatedTime();

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