Commit 4d081c06 authored by amateescu's avatar amateescu
Browse files

Use the proper syntax for logging.

parent 3f7a3f4a
......@@ -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());
}
......
Markdown is supported
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