You are here

public function Product::getCreatedTime in Commerce Core 8.2

Gets the product creation timestamp.

Return value

int The product creation timestamp.

Overrides ProductInterface::getCreatedTime

File

modules/product/src/Entity/Product.php, line 114

Class

Product
Defines the product entity class.

Namespace

Drupal\commerce_product\Entity

Code

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