Commit d2133350 authored by alexpott's avatar alexpott

Issue #2637254 by tvlooy: Form API using $this when not in object context

parent 04df441a
......@@ -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;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment