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\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}