You are here

public function CurrencyLocale::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

2 calls to CurrencyLocale::id()
CurrencyLocale::getCountryCode in src/Entity/CurrencyLocale.php
Gets the country code.
CurrencyLocale::getLanguageCode in src/Entity/CurrencyLocale.php
Gets the language code.

File

src/Entity/CurrencyLocale.php, line 162

Class

CurrencyLocale
Defines a currency locale entity.

Namespace

Drupal\currency\Entity

Code

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