You are here

public function StylePluginBase::__construct in Bootstrap Styles 1.0.x

Constructs a StylePluginBase 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.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.

Overrides PluginBase::__construct

1 call to StylePluginBase::__construct()
BackgroundMedia::__construct in src/Plugin/BootstrapStyles/Style/BackgroundMedia.php
Constructs a BackgroundMedia object.
1 method overrides StylePluginBase::__construct()
BackgroundMedia::__construct in src/Plugin/BootstrapStyles/Style/BackgroundMedia.php
Constructs a BackgroundMedia object.

File

src/Style/StylePluginBase.php, line 44

Class

StylePluginBase
A base class to help developers implement their own Styles Group plugins.

Namespace

Drupal\bootstrap_styles\Style

Code

public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory) {
  parent::__construct($configuration, $plugin_id, $plugin_definition);
  $this->configFactory = $config_factory;
}