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
xmlsitemap
Commits
4d081c06
Commit
4d081c06
authored
May 03, 2016
by
amateescu
Browse files
Use the proper syntax for logging.
parent
3f7a3f4a
Changes
1
Hide whitespace changes
Inline
Side-by-side
xmlsitemap_custom/src/Form/XmlSitemapCustomDeleteForm.php
View file @
4d081c06
...
...
@@ -93,9 +93,8 @@ class XmlSitemapCustomDeleteForm extends ConfirmFormBase {
*/
public
function
submitForm
(
array
&
$form
,
FormStateInterface
$form_state
)
{
$this
->
linkStorage
->
delete
(
'custom'
,
$this
->
custom_link
[
'id'
]);
$message
=
$this
->
t
(
'The custom link for %loc has been deleted.'
,
array
(
'%loc'
=>
$this
->
custom_link
[
'loc'
]));
$this
->
logger
(
'xmlsitemap'
)
->
debug
(
$message
);
drupal_set_message
(
$message
);
$this
->
logger
(
'xmlsitemap'
)
->
debug
(
'The custom link for %loc has been deleted.'
,
array
(
'%loc'
=>
$this
->
custom_link
[
'loc'
]));
drupal_set_message
(
$this
->
t
(
'The custom link for %loc has been deleted.'
,
array
(
'%loc'
=>
$this
->
custom_link
[
'loc'
])));
$form_state
->
setRedirectUrl
(
$this
->
getCancelUrl
());
}
...
...
Write
Preview
Markdown
is supported
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