You are here

public function ProductBundle::setCreatedTime in Commerce Product Bundle 8

Sets the product bundle creation timestamp.

Parameters

int $timestamp: The product bundle creation timestamp.

Return value

\Drupal\commerce_product_bundle\Entity\BundleInterface The called product bundle entity.

Overrides BundleInterface::setCreatedTime

File

src/Entity/ProductBundle.php, line 111

Class

ProductBundle
Defines the product bundle entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

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