Skip to content

Commit a62c92b

Browse files
committed
[RGTC-1103] Fix openy_node
1 parent cc37279 commit a62c92b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/openy_features/openy_node/src/BatchNodeUpdate.php

+3-1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ public static function update($ids, $status, $type, &$context) {
6565
* If $success is FALSE, contains the operations that remained unprocessed.
6666
*/
6767
public static function finished($success, $results, $operations) {
68+
$messenger = \Drupal::messenger();
69+
6870
if ($success) {
6971
if ($results['status']) {
7072
$status = 'published';
@@ -83,6 +85,6 @@ public static function finished($success, $results, $operations) {
8385
} else {
8486
$message = t('There was an error updating @type.', ['@type' => $results['type']]);
8587
}
86-
drupal_set_message($message);
88+
$messenger->addMessage($message);
8789
}
8890
}

0 commit comments

Comments
 (0)