Skip to content

Commit 4b0ad37

Browse files
Fix deprecated method drupal_get_path() (#181)
1 parent 0e93006 commit 4b0ad37

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/UpdateService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public function __construct(UuidInterface $uuid,
105105
*/
106106
public function update8802() {
107107
$module = 'apigee_api_catalog';
108-
$configPath = drupal_get_path('module', $module) . '/config';
108+
$configPath = \Drupal::service('extension.list.module')->getPath($module) . '/config';
109109
$configToImport['install'] = [
110110
'node.type.apidoc',
111111
'core.base_field_override.node.apidoc.title',
@@ -354,7 +354,7 @@ public function update8807() {
354354
*/
355355
public function update8808() {
356356
$module = 'apigee_api_catalog';
357-
$configPath = drupal_get_path('module', $module) . '/config';
357+
$configPath = \Drupal::service('extension.list.module')->getPath($module) . '/config';
358358
$configToImport['install'] = [
359359
'node.type.apidoc',
360360
'field.field.node.apidoc.field_api_product',

0 commit comments

Comments
 (0)