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

8.1.x
Alex Pott 2015-12-23 01:25:46 +00:00
parent 04df441a7a
commit d21333500d
1 changed files with 1 additions and 1 deletions

View File

@ -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;