Verified Commit f5014df8 authored by apaderno's avatar apaderno
Browse files

The string passed to $this->logger->error() does not need to be translated

parent 95503bfe
......@@ -46,7 +46,11 @@ public function __construct(array $configuration, $plugin_id, array $plugin_defi
* {@inheritdoc}
*/
public static function create(ContainerInterface $container, array $configuration, $plugin_id, $plugin_definition) {
return new static($configuration, $plugin_id, $plugin_definition, $container->get('logger.channel.ckeditor_advanced_tab'));
return new static(
$configuration, $plugin_id, $plugin_definition,
$container->get('logger.channel.ckeditor_advanced_tab'),
$container->get('')
);
}
/**
......@@ -55,10 +59,10 @@ public static function create(ContainerInterface $container, array $configuratio
public function getFile() {
$file = 'libraries/ckeditor/plugins/dialogadvtab/plugin.js';
if (!file_exists($file)) {
$this->logger->error(t(
$this->logger->error(
'The %file file cannot be found. Please follow the installation instructions given in the README.md file.',
['%file' => $file]
));
);
}
else {
return $file;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment