You are here

public function BrightcoveInitSubscriber::initializeBrightcoveClient in Brightcove Video Connect 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/BrightcoveInitSubscriber.php \Drupal\brightcove\EventSubscriber\BrightcoveInitSubscriber::initializeBrightcoveClient()
  2. 3.x src/EventSubscriber/BrightcoveInitSubscriber.php \Drupal\brightcove\EventSubscriber\BrightcoveInitSubscriber::initializeBrightcoveClient()

Initialize Brightcove client proxy.

Parameters

\Symfony\Component\HttpKernel\Event\GetResponseEvent $event: GET response event.

File

src/EventSubscriber/BrightcoveInitSubscriber.php, line 21

Class

BrightcoveInitSubscriber
Subscribes to Drupal initialization event.

Namespace

Drupal\brightcove\EventSubscriber

Code

public function initializeBrightcoveClient(GetResponseEvent $event) {
  Client::$consumer = 'Drupal/' . \Drupal::VERSION . ' Brightcove/' . (system_get_info('module', 'brightcove')['version'] ?: 'dev');
}