I am using the Message module with Drupal 8 to log information.
I was able to get the date and time in the messages produced by adding a token of the date and time , but I want to add a customized message that is different each time. How can I do this? this is the code I am using:
$message = Message::create(['template' => 'sfbu_progress']); $message->save();
How can I add a customized message to each message created? For Example I want it to say "This file 444.pdf was successfully uploaded" or "this file 888.pdf was missing ".