From 7a9d9e0040ec0a54a914142eb84a1c3d5a546f3f Mon Sep 17 00:00:00 2001 From: Johnathan Bamber Date: Wed, 3 Aug 2022 12:45:53 -0400 Subject: [PATCH 1/2] Added core_version_requirement to .info.yml. --- spacelift.info.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacelift.info.yml b/spacelift.info.yml index 0950eb2..18a6a7e 100644 --- a/spacelift.info.yml +++ b/spacelift.info.yml @@ -2,7 +2,7 @@ name: Spacelift type: theme base theme: classy description: A forward-thinking, developer-focused base theme for Drupal 8. -core: 8.x +core_version_requirement: ^8 || ^9 regions: utility: Utility header: Header From 9390595fa52c635d3e4c1de394766e6f5c5b121f Mon Sep 17 00:00:00 2001 From: Johnathan Bamber Date: Fri, 5 Aug 2022 10:04:32 -0400 Subject: [PATCH 2/2] Replace service path.alias_manager. --- spacelift.theme | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacelift.theme b/spacelift.theme index bccac86..39ffb02 100644 --- a/spacelift.theme +++ b/spacelift.theme @@ -81,7 +81,7 @@ function spacelift_preprocess_block(&$variables) { $currentUrl = \Drupal\Core\Url::fromRouteMatch(\Drupal::routeMatch())->getInternalPath(); - $parentPath = $alias = \Drupal::service('path.alias_manager')->getAliasByPath('/' . $parentUrl->getInternalPath()); + $parentPath = $alias = \Drupal::service('path_alias.manager')->getAliasByPath('/' . $parentUrl->getInternalPath()); $parentUrlActive = ($parentUrl->getInternalPath() == $currentUrl); }