<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
heimrichhannot / contao-status-message-bundle example snippets
use HeimrichHannot\StatusMessageBundle\Manager\StatusMessageManager;
// ...
protected StatusMessageManager $statusMessageManager;
// ...
// use this scope key to output the messages after you've added them (see below)
$scopeKey = $this->statusMessageManager->getScopeKey(
StatusMessageManager::SCOPE_TYPE_MODULE,
$module->id
);
$this->statusMessageManager->addSuccessMessage(
'Everything worked well :-)',
$scopeKey
);