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://stackoverflow.com/questions/54184707/warning-continue-targeting-switch-is-equivalent-to-break-did-you-mean-to-u Error while...
-
composer update (YES, simply run this command. That's good enough. It will update everything including core drupal 9.1.5.) If this not w...