You are here

public function ProductVariation::getCreatedTime in Commerce Core 8.2

Gets the variation creation timestamp.

Return value

int The variation creation timestamp.

Overrides ProductVariationInterface::getCreatedTime

File

modules/product/src/Entity/ProductVariation.php, line 237

Class

ProductVariation
Defines the product variation entity class.

Namespace

Drupal\commerce_product\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}