You are here

public function SitewideAlert::getCreatedTime in Sitewide Alert 8

Gets the Sitewide Alert creation timestamp.

Return value

int Creation timestamp of the Sitewide Alert.

Overrides SitewideAlertInterface::getCreatedTime

File

src/Entity/SitewideAlert.php, line 162

Class

SitewideAlert
Defines the Sitewide Alert entity.

Namespace

Drupal\sitewide_alert\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}