Skip to content
Snippets Groups Projects
Commit d2133350 authored by Alex Pott's avatar Alex Pott
Browse files

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

parent 04df441a
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment