You are here

function delete_all_content_batch_delete_finished in Delete all 2.x

Same name and namespace in other branches
  1. 8 includes/delete_all.content.batch.inc \delete_all_content_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_content_batch_delete_finished'
ContentDeleteController::getContentDeleteBatch in src/Controller/ContentDeleteController.php

File

includes/delete_all.content.batch.inc, line 81

Code

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