Issue #2637254 by tvlooy: Form API using $this when not in object context
parent
04df441a7a
commit
d21333500d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue