public function WishlistItem::setCreatedTime in Commerce Wishlist 8.3
Sets the wishlist item creation timestamp.
Parameters
int $timestamp: The wishlist item creation timestamp.
Return value
$this
Overrides WishlistItemInterface::setCreatedTime
File
- src/
Entity/ WishlistItem.php, line 240
Class
- WishlistItem
- Defines the wishlist item entity class.
Namespace
Drupal\commerce_wishlist\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}