You are here

public function Currency::setName in Price 2.x

Same name and namespace in other branches
  1. 8 src/Entity/Currency.php \Drupal\price\Entity\Currency::setName()
  2. 3.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setName()
  3. 2.0.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 125

Class

Currency
Defines the currency entity class.

Namespace

Drupal\price\Entity

Code

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