From b357021cc8c7effac7e64c5f319e32e22939bc80 Mon Sep 17 00:00:00 2001 From: Kristen Pol Date: Wed, 6 Mar 2024 11:37:44 -0800 Subject: [PATCH] Removed response logic in unpublish logging. --- src/Utility.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Utility.php b/src/Utility.php index 9461280..3d0f049 100644 --- a/src/Utility.php +++ b/src/Utility.php @@ -284,10 +284,9 @@ public static function unpublishUrl(string $url, string $message = '', bool $log return; } - $response = \Drupal::service('event_dispatcher')->dispatch(new QuantEvent('', $url, [], NULL), QuantEvent::UNPUBLISH); + \Drupal::service('event_dispatcher')->dispatch(new QuantEvent('', $url, [], NULL), QuantEvent::UNPUBLISH); - // Only log if it's not a 404. - if ($log && $response) { + if ($log) { if (empty($message)) { $message = 'Unpublished url'; }