You are here

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\Entity

Code

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