public function BrightcoveInitSubscriber::initializeBrightcoveClient in Brightcove Video Connect 8
Same name and namespace in other branches
- 8.2 src/EventSubscriber/BrightcoveInitSubscriber.php \Drupal\brightcove\EventSubscriber\BrightcoveInitSubscriber::initializeBrightcoveClient()
- 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\EventSubscriberCode
public function initializeBrightcoveClient(GetResponseEvent $event) {
Client::$consumer = 'Drupal/' . \Drupal::VERSION . ' Brightcove/' . (system_get_info('module', 'brightcove')['version'] ?: 'dev');
}