You are here

public function Webhook::setCreatedTime in Webhooks 8

Sets the webhook creation timestamp.

Parameters

int $timestamp: The webhook creation timestamp.

Return value

\Drupal\webhook\WebhookInterface The called webhook entity.

Overrides WebhookInterface::setCreatedTime

File

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

Class

Webhook
Defines the webhook entity class.

Namespace

Drupal\webhook\Entity

Code

public function setCreatedTime($timestamp) {
  $this
    ->set('created', $timestamp);
  return $this;
}