Commit 1a946409 authored by Dhruv Mittal's avatar Dhruv Mittal Committed by Sascha Grossenbacher
Browse files

[#3411478] fix: TypeError:...

[#3411478] fix: TypeError: Symfony\Component\HttpFoundation\Session\Flash\FlashBag::peek(): Argument #1 ($type) must be of type string, array given, called in .../core/lib/Drupal/Core/Messenger/Messenger.php on line 59 in Symfony\Component\Ht

By: deepak tomar
By: dhruv.mittal
parent 457aa312
Loading
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -175,10 +175,13 @@ class PathautoBulkUpdateForm extends FormBase {
    else {
      $error_operation = reset($operations);
      \Drupal::service('messenger')
        ->addMessage(t('An error occurred while processing @operation with arguments : @args'), [
          '@operation' => $error_operation[0],
          '@args' => print_r($error_operation[0]),
        ]);
        ->addMessage(t(
          'An error occurred while processing %operation with arguments: %args',
          [
            '%operation' => $error_operation[0],
            '%args' => print_r($error_operation, TRUE),
          ]
        ), 'error');
    }
  }