You are here

public function BrightcoveVideo::setDuration in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveVideo.php \Drupal\brightcove\Entity\BrightcoveVideo::setDuration()
  2. 3.x src/Entity/BrightcoveVideo.php \Drupal\brightcove\Entity\BrightcoveVideo::setDuration()

Sets the video duration.

Parameters

int $duration: The duration of the video.

Return value

\Drupal\brightcove\BrightcoveVideoInterface The called Brightcove Video.

Overrides BrightcoveVideoInterface::setDuration

File

src/Entity/BrightcoveVideo.php, line 315

Class

BrightcoveVideo
Defines the Brightcove Video entity.

Namespace

Drupal\brightcove\Entity

Code

public function setDuration($duration) {
  $this
    ->set('duration', $duration);
  return $this;
}