You are here

public function Currency::id in Price 3.x

Same name and namespace in other branches
  1. 8 src/Entity/Currency.php \Drupal\price\Entity\Currency::id()
  2. 2.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::id()
  3. 2.x src/Entity/Currency.php \Drupal\price\Entity\Currency::id()
  4. 3.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::id()

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 93

Class

Currency
Defines the currency entity class.

Namespace

Drupal\price\Entity

Code

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