Created
December 16, 2021 00:23
-
-
Save MegaphoneJon/a1aa085ecfd87e479589679e6f7ecbf6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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