function Media::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.
Overrides MediaInterface::getCreatedTime
File
- 
              core/
modules/ media/ src/ Entity/ Media.php, line 122  
Class
- Media
 - Defines the media entity class.
 
Namespace
Drupal\media\EntityCode
public function getCreatedTime() {
  return $this->get('created')->value;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.