You are here

public function BrightcoveSubscription::__construct in Brightcove Video Connect 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::__construct()
  2. 8 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::__construct()

Initializes the BrightcoveSubscription Entity object.

Parameters

bool $is_default: Whether this subscription should be default or not. There is be only one per API client.

File

src/Entity/BrightcoveSubscription.php, line 181

Class

BrightcoveSubscription
Defines the Brightcove Subscription entity.

Namespace

Drupal\brightcove\Entity

Code

public function __construct($is_default = FALSE) {
  $this->id = NULL;
  $this->default = $is_default;
  $this->connection = \Drupal::getContainer()
    ->get('database');
}