You are here

public function ProviderPluginBase::__construct in Video 8

Same name and namespace in other branches
  1. 8.2 src/ProviderPluginBase.php \Drupal\video\ProviderPluginBase::__construct()

Create a plugin with the given input.

Parameters

string $configuration: The configuration of the plugin.

\GuzzleHttp\ClientInterface $http_client: An HTTP client.

Throws

\Exception

File

src/ProviderPluginBase.php, line 54

Class

ProviderPluginBase
A base for the provider plugins.

Namespace

Drupal\video

Code

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