You are here

public function BrightcoveCmsEntity::getApiClient in Brightcove Video Connect 8

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

Returns the Brightcove Client API target ID.

Return value

int Target ID of the Brightcove Client API.

Overrides BrightcoveCMSEntityInterface::getApiClient

4 calls to BrightcoveCmsEntity::getApiClient()
BrightcovePlaylist::delete in src/Entity/BrightcovePlaylist.php
BrightcovePlaylist::save in src/Entity/BrightcovePlaylist.php
BrightcoveVideo::delete in src/Entity/BrightcoveVideo.php
BrightcoveVideo::save in src/Entity/BrightcoveVideo.php

File

src/Entity/BrightcoveCmsEntity.php, line 38

Class

BrightcoveCmsEntity
Common base class for CMS entities like Video and Playlist.

Namespace

Drupal\brightcove\Entity

Code

public function getApiClient() {
  return $this
    ->get('api_client')->target_id;
}