You are here

public function PluginBase::__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

1 call to PluginBase::__construct()
CdnProvider::__construct in themes/contrib/bootstrap/src/Plugin/Setting/Advanced/Cdn/CdnProvider.php
Constructs a \Drupal\Component\Plugin\PluginBase object.
1 method overrides PluginBase::__construct()
CdnProvider::__construct in themes/contrib/bootstrap/src/Plugin/Setting/Advanced/Cdn/CdnProvider.php
Constructs a \Drupal\Component\Plugin\PluginBase object.

File

themes/contrib/bootstrap/src/Plugin/PluginBase.php, line 28
Contains \Drupal\bootstrap\Plugin\PluginBase.

Class

PluginBase
Base class for an update.

Namespace

Drupal\bootstrap\Plugin

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition) {
  if (!isset($configuration['theme'])) {
    $configuration['theme'] = Bootstrap::getTheme();
  }
  $this->theme = $configuration['theme'];
  parent::__construct($configuration, $plugin_id, $plugin_definition);
}