Create a function:
//---------------------------------------------------------
function drupal_set_message($message = NULL)
{
$messenger = \Drupal::messenger();
if (isset($message)){
$messenger->addMessage($message,'status',FALSE); }
}
//---------------------------------------------------------
Replace
drupal_set_message(array(
'#type' => 'markup',
'#markup' => $tle));
with these lines:
$this->drupal_set_message(array(
'#type' => 'markup',
'#markup' => $tle));
-
cf: https://ubuntuhandbook.org/index.php/2022/01/default-torrent-app-magnet-links-ubuntu/ Set “QBittorrent” as default app for magnet link,...
-
Download 7z-exe: https://www.7-zip.org/ Get into cmd window cd Z:\Classes\109year\Semester2\Calculus\B\HW\HW7 md files "C:\Program Fi...
-
Setting up Google Drive with rclone config involves creating a "remote" connection through an interactive terminal wizard. S...