update the code use entityTypeManager
Compare changes
+ 11
− 10
@@ -7,6 +7,7 @@ use Drupal\Core\Form\FormStateInterface;
@@ -62,8 +63,7 @@ class MenuImportForm extends ConfigFormBase {
@@ -74,14 +74,14 @@ public function submitForm(array &$form, FormStateInterface $form_state)
@@ -90,9 +90,10 @@ public function submitForm(array &$form, FormStateInterface $form_state)