site-alert.html.twig in Site Alert 8
<div class="severity-{{ alert.severity }}"> <div class="text"> {{ alert.message }} </div> </div>
2 theme calls to site-alert.html.twig
- SiteAlertBlock::build in src/
Plugin/ Block/ SiteAlertBlock.php - Builds and returns the renderable array for this block plugin.
- SiteAlertController::getUpdatedAlerts in src/
Controller/ SiteAlertController.php
File
templates/site-alert.html.twigView source
- <div class="severity-{{ alert.severity }}">
- <div class="text">
- {{ alert.message }}
- </div>
- </div>