public function BrightcoveCmsEntity::setCreatedTime in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/Entity/BrightcoveCmsEntity.php \Drupal\brightcove\Entity\BrightcoveCmsEntity::setCreatedTime()
- 3.x src/Entity/BrightcoveCmsEntity.php \Drupal\brightcove\Entity\BrightcoveCmsEntity::setCreatedTime()
Sets the Brightcove CMS entity creation timestamp.
Parameters
int $timestamp: The Brightcove CMS entity creation timestamp.
Return value
\Drupal\brightcove\BrightcoveCMSEntityInterface The called Brightcove CMS entity.
Overrides BrightcoveCMSEntityInterface::setCreatedTime
2 calls to BrightcoveCmsEntity::setCreatedTime()
- BrightcovePlaylist::save in src/
Entity/ BrightcovePlaylist.php - BrightcoveVideo::save in src/
Entity/ BrightcoveVideo.php
File
- src/
Entity/ BrightcoveCmsEntity.php, line 105
Class
- BrightcoveCmsEntity
- Common base class for CMS entities like Video and Playlist.
Namespace
Drupal\brightcove\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}