public static function MessageArgumentsWorker::argumentsUpdate in Message UI 8
The message batch or queue item callback function.
Parameters
array $mids: The messages ID for process.
array $arguments: The new state arguments.
File
- src/
Plugin/ QueueWorker/ MessageArgumentsWorker.php, line 118
Class
- MessageArgumentsWorker
- Queue worker plugin instance to update the message arguments.
Namespace
Drupal\message_ui\Plugin\QueueWorkerCode
public static function argumentsUpdate(array $mids, array $arguments) {
// Load the messages and update them.
$messages = Message::loadMultiple($mids);
foreach ($messages as $message) {
/* @var Message $message */
MessageArgumentsWorker::messageArgumentsUpdate($message, $arguments);
}
}