protected function GetAlerts::getStorage in Site Alert 8
Returns the entity storage for site alert entities.
Return value
\Drupal\Core\Entity\EntityStorageInterface The entity storage.
File
- src/
GetAlerts.php, line 89
Class
- GetAlerts
- Service for retrieving site alerts.
Namespace
Drupal\site_alertCode
protected function getStorage() {
return $this->entityTypeManager
->getStorage('site_alert');
}