/** * Widget (button) displayed name * * @return string */ public function getUnitName() { $name = parent::getUnitName(); if ($this->isDisplayAmount() && !$this->isDisplayAmountField()) { $name .= ' (' . $this->formatPrice($this->getTransaction()->getValue()) . ')'; } return $name; }