Skip to content

Commit

Permalink
Fix deprecated method drupal_get_path() (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
shishir-intelli authored Jun 7, 2022
1 parent 0e93006 commit 4b0ad37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/UpdateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public function __construct(UuidInterface $uuid,
*/
public function update8802() {
$module = 'apigee_api_catalog';
$configPath = drupal_get_path('module', $module) . '/config';
$configPath = \Drupal::service('extension.list.module')->getPath($module) . '/config';
$configToImport['install'] = [
'node.type.apidoc',
'core.base_field_override.node.apidoc.title',
Expand Down Expand Up @@ -354,7 +354,7 @@ public function update8807() {
*/
public function update8808() {
$module = 'apigee_api_catalog';
$configPath = drupal_get_path('module', $module) . '/config';
$configPath = \Drupal::service('extension.list.module')->getPath($module) . '/config';
$configToImport['install'] = [
'node.type.apidoc',
'field.field.node.apidoc.field_api_product',
Expand Down

0 comments on commit 4b0ad37

Please sign in to comment.