public function BrightcoveSubscription::__construct in Brightcove Video Connect 3.x
Same name and namespace in other branches
- 8.2 src/Entity/BrightcoveSubscription.php \Drupal\brightcove\Entity\BrightcoveSubscription::__construct()
- 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\EntityCode
public function __construct($is_default = FALSE) {
$this->id = NULL;
$this->default = $is_default;
$this->connection = \Drupal::getContainer()
->get('database');
}