You are here

public function Currency::id in Currency 8.3

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

src/Entity/Currency.php, line 277

Class

Currency
Defines a currency entity class.

Namespace

Drupal\currency\Entity

Code

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