function _entity_reference_revisions_orphan_purger_batch_dispatcher in Entity Reference Revisions 8
Batch callback to dispatch the orphan composite batch operation to a service.
1 string reference to '_entity_reference_revisions_orphan_purger_batch_dispatcher'
- EntityReferenceRevisionsOrphanPurger::setBatch in src/
EntityReferenceRevisionsOrphanPurger.php - Sets a batch for executing deletion of the orphaned composite entities.
File
- ./
entity_reference_revisions.module, line 295 - Provides a field that can reference other entities.
Code
function _entity_reference_revisions_orphan_purger_batch_dispatcher() {
$args = func_get_args();
list($service, $method) = explode(':', array_shift($args));
// The second argument (context) is passed by reference.
$values = $args[1];
$args[1] =& $values;
call_user_func_array([
\Drupal::service($service),
$method,
], $args);
}