public function SitewideAlertInterface::isScheduledToShowAt in Sitewide Alert 8
Determines if this SitewideAlert should be shown at the given time.
Parameters
\DateTime $dateTime: The time to compare.
Return value
bool TRUE if this Alert should show at the given time, FALSE otherwise.
1 method overrides SitewideAlertInterface::isScheduledToShowAt()
- SitewideAlert::isScheduledToShowAt in src/
Entity/ SitewideAlert.php - Determines if this SitewideAlert should be shown at the given time.
File
- src/
Entity/ SitewideAlertInterface.php, line 116
Class
- SitewideAlertInterface
- Provides an interface for defining Sitewide Alert entities.
Namespace
Drupal\sitewide_alert\EntityCode
public function isScheduledToShowAt(\DateTime $dateTime);