You are here

public function Transaction::getCreatedTime in Transaction 8

Gets the transaction creation timestamp.

Return value

int The creation timestamp.

Overrides TransactionInterface::getCreatedTime

File

src/Entity/Transaction.php, line 322

Class

Transaction
Provides the transaction content entity.

Namespace

Drupal\transaction\Entity

Code

public function getCreatedTime() {
  return $this
    ->get('created')->value;
}