public function Transaction::setCreatedTime in Transaction 8
Sets the transaction creation timestamp.
Parameters
int $timestamp: The subscription creation timestamp.
Return value
\Drupal\transaction\TransactionInterface The called transaction entity.
Overrides TransactionInterface::setCreatedTime
File
- src/
Entity/ Transaction.php, line 329
Class
- Transaction
- Provides the transaction content entity.
Namespace
Drupal\transaction\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}