diff --git a/core/lib/Drupal/Core/Form/form.api.php b/core/lib/Drupal/Core/Form/form.api.php index 25f71c7a2c295c6d2d811aabbcfe39446994e703..adb2d34d8eca19307f04bc104e55031a0296ff1f 100644 --- a/core/lib/Drupal/Core/Form/form.api.php +++ b/core/lib/Drupal/Core/Form/form.api.php @@ -53,7 +53,7 @@ * such as how many total items were processed. */ function callback_batch_operation($MULTIPLE_PARAMS, &$context) { - $node_storage = $this->container->get('entity.manager')->getStorage('node'); + $node_storage = \Drupal::entityTypeManager()->getStorage('node'); if (!isset($context['sandbox']['progress'])) { $context['sandbox']['progress'] = 0;