You are here

public function BrightcoveCmsEntity::setCreatedTime in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveCmsEntity.php \Drupal\brightcove\Entity\BrightcoveCmsEntity::setCreatedTime()
  2. 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\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}