GetAlertsInterface.php in Site Alert 8
Namespace
Drupal\site_alertFile
src/GetAlertsInterface.phpView source
<?php
namespace Drupal\site_alert;
/**
* Interface for services that retrieve site alerts.
*/
interface GetAlertsInterface {
/**
* Returns the entity IDs of the currently active site alerts.
*
* @return array
* Array of currently active site alert entity IDs.
*/
public function getActiveAlertIds();
/**
* Returns the currently active site alerts.
*
* @return \Drupal\site_alert\Entity\SiteAlert[]
* Array of currently active site alert entities.
*/
public function getActiveAlerts();
}
Interfaces
Name | Description |
---|---|
GetAlertsInterface | Interface for services that retrieve site alerts. |