Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
project
ckeditor_advanced_tab
Commits
f5014df8
Verified
Commit
f5014df8
authored
Jan 10, 2022
by
apaderno
Browse files
The string passed to $this->logger->error() does not need to be translated
parent
95503bfe
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Plugin/CKEditorPlugin/CKEditorAdvancedTab.php
View file @
f5014df8
...
...
@@ -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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment