public function Currency::setSymbol in Price 2.x
Same name and namespace in other branches
- 8 src/Entity/Currency.php \Drupal\price\Entity\Currency::setSymbol()
- 3.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setSymbol()
- 2.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setSymbol()
- 3.0.x src/Entity/Currency.php \Drupal\price\Entity\Currency::setSymbol()
Sets the currency symbol.
Parameters
string $symbol: The currency symbol.
Return value
$this
Overrides CurrencyInterface::setSymbol
File
- src/
Entity/ Currency.php, line 155
Class
- Currency
- Defines the currency entity class.
Namespace
Drupal\price\EntityCode
public function setSymbol($symbol) {
$this->symbol = $symbol;
return $this;
}