public function SitewideAlert::setCreatedTime in Sitewide Alert 8
Sets the Sitewide Alert creation timestamp.
Parameters
int $timestamp: The Sitewide Alert creation timestamp.
Return value
\Drupal\sitewide_alert\Entity\SitewideAlertInterface The called Sitewide Alert entity.
Overrides SitewideAlertInterface::setCreatedTime
File
- src/
Entity/ SitewideAlert.php, line 169
Class
- SitewideAlert
- Defines the Sitewide Alert entity.
Namespace
Drupal\sitewide_alert\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}