Skip to content

Instantly share code, notes, and snippets.

@MegaphoneJon
Created December 16, 2021 00:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save MegaphoneJon/a1aa085ecfd87e479589679e6f7ecbf6 to your computer and use it in GitHub Desktop.
Save MegaphoneJon/a1aa085ecfd87e479589679e6f7ecbf6 to your computer and use it in GitHub Desktop.
--- disable_messages/disable_messages.module 2020-06-02 02:48:33.000000000 -0400
+++ /home/jon/temp/disable_messages.module 2021-12-15 19:22:02.935024440 -0500
@@ -108,7 +108,7 @@
$filter_paths = explode("\n", \Drupal::config('disable_messages.settings')->get('disable_messages_page_filter_paths'));
$current_url = Url::fromRoute('<current>');
$internal_path = disable_messages_remove_white_space($current_url->getInternalPath());
- $path = \Drupal::service('path.alias_manager')->getPathByAlias(($internal_path));
+ $path = \Drupal::service('path_alias.manager')->getPathByAlias(($internal_path));
$page_match = disable_messages_path_match($filter_paths, $path);
if ($path != $internal_path) {
$page_match = $page_match || disable_messages_path_match($filter_paths, $internal_path);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment