/** * Gibt das Label für den normalo Button zurück */ public function getButtonLabel() { if (isset($this->buttonLabel)) { return $this->buttonLabel; } elseif ($this->context === 'new') { return $this->entityMeta->getNewLabel(); } else { throw new \InvalidArgumentException(sprintf("Context '%s' ist unbekannt für getButtonLabel", $this->context)); } }