public function LibraryTransaction::setCreatedTime in Library 8
Sets the Library transaction creation timestamp.
Parameters
int $timestamp: The Library transaction creation timestamp.
Return value
\Drupal\library\LibraryTransactionInterface The called Library transaction entity.
Overrides LibraryTransactionInterface::setCreatedTime
File
- src/
Entity/ LibraryTransaction.php, line 75
Class
- LibraryTransaction
- Defines the Library transaction entity.
Namespace
Drupal\library\EntityCode
public function setCreatedTime($timestamp) {
$this
->set('created', $timestamp);
return $this;
}