You are here

public function Wishlist::setCreatedTime in Commerce Wishlist 8.3

Sets the wishlist creation timestamp.

Parameters

int $timestamp: The wishlist creation timestamp.

Return value

$this

Overrides WishlistInterface::setCreatedTime

File

src/Entity/Wishlist.php, line 307

Class

Wishlist
Defines the wishlist entity class.

Namespace

Drupal\commerce_wishlist\Entity

Code

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