Skip to content

Commit

Permalink
UHF-8650: Remove the deprecation warning as the logs will get flooded…
Browse files Browse the repository at this point in the history
… of it.
  • Loading branch information
khalima committed Oct 23, 2024
1 parent 32bd4e5 commit cc6b9fe
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions modules/hdbt_cookie_banner/hdbt_cookie_banner.module
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit cc6b9fe

Please sign in to comment.