Exemplo n.º 1
0
 /**
  * Das Label für den Tab selbst
  */
 public function getTabLabel()
 {
     if ($this->context === 'new') {
         return $this->entityMeta->getNewLabel();
     } elseif ($this->context === 'grid') {
         return $this->entityMeta->getGridLabel();
     } elseif ($this->context === self::CONTEXT_SEARCHPANEL) {
         return $this->entityMeta->getSearchLabel();
     } elseif ($this->context === self::CONTEXT_DEFAULT) {
         return $this->entityMeta->getLabel();
     } else {
         throw new \InvalidArgumentException(sprintf("Context '%s' ist unbekannt", $this->context));
     }
 }