public function SitewideAlert::isScheduled in Sitewide Alert 8
Returns weather or not the Sitewide Alert is scheduled.
Return value
bool TRUE if the sitewide alert is scheduled, FALSE otherwise.
Overrides SitewideAlertInterface::isScheduled
2 calls to SitewideAlert::isScheduled()
- SitewideAlert::isScheduledToShowAt in src/
Entity/ SitewideAlert.php - Determines if this SitewideAlert should be shown at the given time.
- SitewideAlert::preSave in src/
Entity/ SitewideAlert.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ SitewideAlert.php, line 394
Class
- SitewideAlert
- Defines the Sitewide Alert entity.
Namespace
Drupal\sitewide_alert\EntityCode
public function isScheduled() : bool {
return (bool) $this
->get('scheduled_alert')->value;
}