You are here

public function TranscoderBase::__construct in Video 8.2

Create a plugin with the given input.

Parameters

string $configuration: The configuration of the plugin.

\GuzzleHttp\ClientInterface $http_client: An HTTP client.

Throws

\Exception

Overrides PluginBase::__construct

File

modules/video_transcode/src/TranscoderBase.php, line 42
Provides Drupal\video_transcode\TranscoderBase.

Class

TranscoderBase

Namespace

Drupal\video_transcode

Code

public function __construct($configuration, ClientInterface $http_client) {
  $this->file = $configuration['file'];
  $this->httpClient = $http_client;
}