You are here

public function ProductBundleItem::setCreatedTime in Commerce Product Bundle 8

Sets the product bundle item creation timestamp.

Parameters

int $timestamp: The product bundle item creation timestamp.

Return value

\Drupal\commerce_product_bundle\Entity\BundleItemInterface The called product bundle item entity.

Overrides BundleItemInterface::setCreatedTime

File

src/Entity/ProductBundleItem.php, line 168

Class

ProductBundleItem
Defines the product bundle item entity.

Namespace

Drupal\commerce_product_bundle\Entity

Code

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