public function Subscription::setCreatedTime in Mailing List 8
Sets the subscription creation timestamp.
Parameters
int $timestamp: The subscription creation timestamp.
Return value
\Drupal\mytest\SubscriptionInterface The called subscription entity.
Overrides SubscriptionInterface::setCreatedTime
File
- src/
Entity/ Subscription.php, line 116
Class
- Subscription
- Defines the subscription entity class.
Namespace
Drupal\mailing_list\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}