You are here

public function BrightcoveAPIClient::__construct in Brightcove Video Connect 8.2

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

Constructs an Entity object.

Parameters

array $values: An array of values to set, keyed by property name. If the entity type has bundles, the bundle key has to be specified.

string $entity_type: The type of the entity to create.

Overrides ConfigEntityBase::__construct

File

src/Entity/BrightcoveAPIClient.php, line 270

Class

BrightcoveAPIClient
Defines the Brightcove API Client entity.

Namespace

Drupal\brightcove\Entity

Code

public function __construct(array $values, $entity_type) {
  parent::__construct($values, $entity_type);
  $this->key_value_expirable_store = \Drupal::keyValueExpirable('brightcove_access_token');
}