diff --git a/composer.json b/composer.json index e422644..8ae2a5c 100644 --- a/composer.json +++ b/composer.json @@ -44,6 +44,11 @@ "npm-asset" ], "enable-patching": true, - "composer-exit-on-patch-failure": true + "composer-exit-on-patch-failure": true, + "patches": { + "drupal/styleguide": { + "Issue #3068640 Drupal 9 Deprecated Code Report": "https://www.drupal.org/files/issues/2020-09-16/styleguide-3068640-39.patch" + } + } } } \ No newline at end of file diff --git a/varbase_styleguide.module b/varbase_styleguide.module index 3e7430f..52a5060 100644 --- a/varbase_styleguide.module +++ b/varbase_styleguide.module @@ -814,7 +814,7 @@ function varbase_styleguide_styleguide_alter(&$items) { // =========================================================================== // Have the list of active view modes for content types: // =========================================================================== - $content_types = \Drupal::service('entity.manager') + $content_types = \Drupal::service('entity_type.manager') ->getStorage('node_type') ->loadMultiple();