You are here

public function CkeditorTemplates::__construct in CKEditor Templates 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.

\Drupal\Core\Config\ConfigFactory $configFactoryService: Drupal Configuration Factory Service.

Overrides PluginBase::__construct

File

src/Plugin/CKEditorPlugin/CkeditorTemplates.php, line 51

Class

CkeditorTemplates
Defines the "Templates" plugin.

Namespace

Drupal\ckeditor_templates\Plugin\CKEditorPlugin

Code

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