public function GetAlertsInterface::getActiveAlerts in Site Alert 8
Returns the currently active site alerts.
Return value
\Drupal\site_alert\Entity\SiteAlert[] Array of currently active site alert entities.
1 method overrides GetAlertsInterface::getActiveAlerts()
- GetAlerts::getActiveAlerts in src/
GetAlerts.php - Returns the currently active site alerts.
File
- src/
GetAlertsInterface.php, line 24
Class
- GetAlertsInterface
- Interface for services that retrieve site alerts.
Namespace
Drupal\site_alertCode
public function getActiveAlerts();