public function ScaytCKEditorButton::__construct in CKEditor SpellCheckAsYouType (SCAYT) 8
Constructs a \Drupal\ckeditor\Plugin\CKEditorPlugin\Internal 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 factory for configuration objects.
Drupal\Core\Asset\LibraryDiscoveryInterface $library_discovery: The library discovery interface.
Overrides PluginBase::__construct
File
- src/
Plugin/ CKEditorPlugin/ ScaytCKEditorButton.php, line 64
Class
- ScaytCKEditorButton
- Defines the "scayt" plugin.
Namespace
Drupal\ckeditor_scayt\Plugin\CKEditorPluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, LibraryDiscoveryInterface $library_discovery) {
$this->configFactory = $config_factory;
$this->configModule = $this->configFactory
->getEditable('ckeditor_scayt.config');
$this->libraryDiscovery = $library_discovery;
parent::__construct($configuration, $plugin_id, $plugin_definition);
}