You are here

public function BrightcoveVideo::getScheduleStartsAt in Brightcove Video Connect 8

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

Returns the schedule starts at date.

Return value

string The datetime of the schedule starts at date.

Overrides BrightcoveVideoInterface::getScheduleStartsAt

1 call to BrightcoveVideo::getScheduleStartsAt()
BrightcoveVideo::save in src/Entity/BrightcoveVideo.php

File

src/Entity/BrightcoveVideo.php, line 525

Class

BrightcoveVideo
Defines the Brightcove Video entity.

Namespace

Drupal\brightcove\Entity

Code

public function getScheduleStartsAt() {
  $value = $this
    ->get('schedule_starts_at')
    ->getValue();
  if (empty($value)) {
    return NULL;
  }
  return $value[0]['value'];
}