WellCommerce\Bundle\DictionaryBundle\Entity\Dictionary::getIdentifier PHP Method

getIdentifier() public method

public getIdentifier ( ) : string
return string
    public function getIdentifier() : string
    {
        return $this->identifier;
    }

Usage Example

コード例 #1
0
 /**
  *
  * @param Dictionary $dictionary
  */
 protected function addDatabaseTranslation(Dictionary $dictionary)
 {
     foreach ($this->locales as $locale) {
         $translation = $dictionary->translate($locale->getCode())->getValue();
         $propertyPath = '[' . $locale->getCode() . ']' . Helper::convertDotNotation($dictionary->getIdentifier());
         $this->propertyAccessor->setValue($this->databaseTranslations, $propertyPath, $translation);
     }
 }