From 82359f808dd1d412da4603e0b56b35c8fe8f67ee Mon Sep 17 00:00:00 2001 From: Mikkel Ricky Date: Wed, 12 Jan 2022 15:03:45 +0100 Subject: [PATCH] Use entity_type.manager to get storage --- os2forms.module | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/os2forms.module b/os2forms.module index f539d0e4..21ad8f7e 100644 --- a/os2forms.module +++ b/os2forms.module @@ -30,7 +30,7 @@ function os2forms_webform_admin_third_party_settings_form_alter(&$form, FormStat ]; /** @var \Drupal\webform\WebformThirdPartySettingsManagerInterface $third_party_settings_manager */ $third_party_settings_manager = \Drupal::service('webform.third_party_settings_manager'); - $webform_entity_storage = \Drupal::service('entity.manager')->getStorage('webform'); + $webform_entity_storage = \Drupal::service('entity_type.manager')->getStorage('webform'); $form['third_party_settings']['os2forms']['migrate_to_category'] = [ '#type' => 'webform_select_other', '#title' => t('Migrate webforms to category'),