You are here

public function Currency::id in Commerce Core 8.2

Gets the identifier.

Return value

string|int|null The entity identifier, or NULL if the object does not yet have an identifier.

Overrides EntityBase::id

File

modules/price/src/Entity/Currency.php, line 96

Class

Currency
Defines the currency entity class.

Namespace

Drupal\commerce_price\Entity

Code

public function id() {
  return $this->currencyCode;
}