You are here

public function PriceListItem::setCreatedTime in Commerce Pricelist 8

Sets the price list item creation timestamp.

Parameters

int $timestamp: The price list item creation timestamp.

  • @return $this.

Overrides PriceListItemInterface::setCreatedTime

File

src/Entity/PriceListItem.php, line 127

Class

PriceListItem
Defines the price list item entity.

Namespace

Drupal\commerce_pricelist\Entity

Code

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