Hi I am using the message module https://www.drupal.org/project/messageMessage module with drupalDrupal 8 to log information. I
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 " Thank you.