Skip to content
Snippets Groups Projects
Commit 165ea698 authored by Igor Biki's avatar Igor Biki
Browse files

ISTWCMS-7275: Rename function and refine batch update messages

Renamed `uw_custom_blocks_post_update_references_block_titles_updates_16` for clarity and removed unused placeholders in batch end messages. Improved user feedback by simplifying and streamlining update messages for nodes and revisions.
parent c75a9e93
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@
/**
* Updating the title for "references" layout builder blocks titles.
*/
function uw_custom_blocks_post_update_references_block_titles_updates_16(&$sandbox) {
function uw_custom_blocks_post_update_references_block_titles_updates(&$sandbox) {
$query = \Drupal::entityQuery('node');
$all_nodes = $query->accessCheck(FALSE)->sort('nid')->execute();
$count = count($all_nodes);
......@@ -170,12 +170,11 @@ function _references_block_titles_updates_batch_temp_storage(&$context) {
* about nodes and revisions processed during the batch operation.
*/
function _references_block_titles_updates_batch_end(&$context) {
$context['message'] = t('Updated @nodes_updated/@nodes_processed (total @total nodes).', [
$context['message'] = t('Successfully updated @nodes_updated/@nodes_processed.', [
'@nodes_updated' => $context['results']['nodes_updated'],
'@nodes_processed' => $context['results']['nodes_processed'],
'@total' => $context['results']['nodes_count'],
]);
$context['message'] = t('Updated @revisions_updated/@revisions_processed revisions.', [
$context['message'] = t('Successfully updated @revisions_updated/@revisions_processed revisions.', [
'@revisions_updated' => $context['results']['revisions_updated'],
'@revisions_processed' => $context['results']['revisions_processed'],
]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment