You are here

public function Currency::setName in Price 8

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

Sets the currency name.

Parameters

string $name: The currency name.

Return value

$this

Overrides CurrencyInterface::setName

File

src/Entity/Currency.php, line 122

Class

Currency
Defines the currency entity class.

Namespace

Drupal\price\Entity

Code

public function setName($name) {
  $this->name = $name;
  return $this;
}