public function ProductVariation::setCreatedTime in Commerce Core 8.2
Sets the variation creation timestamp.
Parameters
int $timestamp: The variation creation timestamp.
Return value
$this
Overrides ProductVariationInterface::setCreatedTime
File
- modules/
product/ src/ Entity/ ProductVariation.php, line 244
Class
- ProductVariation
- Defines the product variation entity class.
Namespace
Drupal\commerce_product\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}