Пример #1
0
 public function getLabel()
 {
     if (!$this->label || !$this->label instanceof \Symforce\AdminBundle\Compiler\Generator\TransGeneratorValue) {
         if (!$this->label) {
             $this->label = $this->generator->humanize(basename(str_replace('\\', '/', $this->class_name)));
         }
         if (!$this->tr_node) {
             $this->tr_node = $this->generator->getTransNodeByPath($this->tr_domain, $this->name);
         }
         $this->label = $this->tr_node->createValue('label', $this->label);
     }
     return $this->label;
 }