Skip to content

Commit

Permalink
Merge pull request #20 from rimi-itk/hotfix/entity-type-manager
Browse files Browse the repository at this point in the history
Use entity_type.manager to get storage
  • Loading branch information
madsnorgaard authored Jan 12, 2022
2 parents 58547f3 + 82359f8 commit 730249b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion os2forms.module
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 730249b

Please sign in to comment.