You are here

public function Webhook::getCreatedTime in Webhooks 8

Gets the webhook creation timestamp.

Return value

int Creation timestamp of the webhook.

Overrides WebhookInterface::getCreatedTime

File

modules/webhook/src/Entity/Webhook.php, line 66

Class

Webhook
Defines the webhook entity class.

Namespace

Drupal\webhook\Entity

Code

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