/**
  * {@inheritDoc}
  */
 public function getName()
 {
     $this->__initializer__ && $this->__initializer__->__invoke($this, 'getName', array());
     return parent::getName();
 }
示例#2
0
 /**
  * Get label translation to the default language
  *
  * @param \XLite\Model\LanguageLabel $entity
  *
  * @return string
  */
 protected function getLabelDefaultValue($entity)
 {
     $result = $entity->getTranslation(static::getDefaultLanguage())->label;
     if (!$result && $this->isTranslatedLanguageSelected()) {
         $result = $entity->getName();
     }
     return $result;
 }