You are here

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\Entity

Code

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