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,...
-
cf: https://www.tenforums.com/tutorials/101274-uninstall-printer-driver-windows-10-a.html Open cmd in administer mode Run printmanagement...
-
cf: https://stackoverflow.com/questions/54184707/warning-continue-targeting-switch-is-equivalent-to-break-did-you-mean-to-u Error while...