From cc6b9feb6c2b1c8383e5bb857e023b6ab0f655f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Kalij=C3=A4rvi?= Date: Wed, 23 Oct 2024 13:09:02 +0300 Subject: [PATCH] UHF-8650: Remove the deprecation warning as the logs will get flooded of it. --- modules/hdbt_cookie_banner/hdbt_cookie_banner.module | 3 --- 1 file changed, 3 deletions(-) diff --git a/modules/hdbt_cookie_banner/hdbt_cookie_banner.module b/modules/hdbt_cookie_banner/hdbt_cookie_banner.module index 0848a789e..b8ed43132 100644 --- a/modules/hdbt_cookie_banner/hdbt_cookie_banner.module +++ b/modules/hdbt_cookie_banner/hdbt_cookie_banner.module @@ -88,9 +88,6 @@ function hdbt_cookie_banner_page_attachments(array &$attachments) : void { */ // phpcs:ignore Drupal.Commenting.FunctionComment.Missing, Drupal.NamingConventions.ValidFunctionName.InvalidPrefix function helfi_eu_cookie_compliance_get_privacy_policy_url(): Url|string { - // phpcs:ignore Drupal.Semantics.FunctionTriggerError.TriggerErrorTextLayoutRelaxed - @trigger_error("helfi_eu_cookie_compliance_get_privacy_policy_url() is deprecated. Modules and themes should use instead the Drupal::service('hdbt_cookie_banner.cookie_settings')->getCookieSettingsPageUrl();.", E_USER_DEPRECATED); - // Use the HDBT cookie banner cookie settings service to retrieve the // cookie settings page URL. $cookie_settings = Drupal::service('hdbt_cookie_banner.cookie_settings');