You are here

public function CdnProvider::__construct in Express 8

Constructs a \Drupal\Component\Plugin\PluginBase object.

Parameters

array $configuration: A configuration array containing information about the plugin instance.

string $plugin_id: The plugin_id for the plugin instance.

mixed $plugin_definition: The plugin implementation definition.

Overrides PluginBase::__construct

File

themes/contrib/bootstrap/src/Plugin/Setting/Advanced/Cdn/CdnProvider.php, line 59
Contains \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnProvider.

Class

CdnProvider
The "cdn_provider" theme setting.

Namespace

Drupal\bootstrap\Plugin\Setting\Advanced\Cdn

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->providerManager = new ProviderManager($this->theme);
  if (isset($plugin_definition['cdn_provider'])) {
    $this->provider = $this->theme
      ->getProvider($plugin_definition['cdn_provider']);
  }
}