You are here

function delete_all_entities_batch_delete_finished in Delete all 8

Same name and namespace in other branches
  1. 2.x includes/delete_all.entities.batch.inc \delete_all_entities_batch_delete_finished()

Finished callback for the user deletion batch.

Parameters

int $success: Equals 1 if batch is successfull else equals 0.

variable $results: List of results parameter collected during batch processing.

variable $operations: @todo add description.

1 string reference to 'delete_all_entities_batch_delete_finished'
EntityDeleteController::getEntitiesDeleteBatch in src/Controller/EntityDeleteController.php

File

includes/delete_all.entities.batch.inc, line 60

Code

function delete_all_entities_batch_delete_finished($success, $results, $operations) {
  if ($success) {
    \Drupal::messenger()
      ->addMessage(t('Deleted @count entities.', [
      '@count' => $results['count'],
    ]));
  }
}