public function PriceList::setCreatedTime in Commerce Pricelist 8
Sets the price list creation timestamp.
Parameters
int $timestamp: The price list creation timestamp.
Return value
\Drupal\commerce_pricelist\Entity\PriceListInterface The called price list entity.
Overrides PriceListInterface::setCreatedTime
File
- src/
Entity/ PriceList.php, line 111
Class
- PriceList
- Defines the Price list entity.
Namespace
Drupal\commerce_pricelist\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}