public function Templates::__construct in Wysiwyg API template plugin 8.2
Same name and namespace in other branches
- 3.0.x src/Plugin/CKEditorPlugin/Templates.php \Drupal\wysiwyg_template\Plugin\CKEditorPlugin\Templates::__construct()
Constructs the CKEditor Templates plugin.
Parameters
array $configuration: The plugin configuration.
string $plugin_id: The plugin ID.
mixed $plugin_definition: The plugin definition.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The current request stack.
Overrides PluginBase::__construct
File
- src/
Plugin/ CKEditorPlugin/ Templates.php, line 55
Class
- Templates
- Defines the CKEditor Templates plugin.
Namespace
Drupal\wysiwyg_template\Plugin\CKEditorPluginCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, RequestStack $request_stack) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->config = $config_factory
->get('wysiwyg_template.settings');
$this->requestStack = $request_stack;
}